summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar David Benjamin <davidben@mit.edu>2013-07-12 18:13:34 -0400
committerGravatar Karl Ramm <kcr@1ts.org>2013-08-08 00:24:58 -0400
commita87120a929659628d1e65fdb7589bcc780b70766 (patch)
tree30d6c387490adf5849d1b8554c03a3709606a56c
parentd5502254c8466972b67877e24096559292cbd7ce (diff)
Call krb5_unparse_name in server/kstuff.c
Looks like it's the same as free right now, but may as well call the right one.
-rw-r--r--server/kstuff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/kstuff.c b/server/kstuff.c
index e405734..b2cf4c5 100644
--- a/server/kstuff.c
+++ b/server/kstuff.c
@@ -413,11 +413,11 @@ ZCheckSrvAuthentication(ZNotice_t *notice,
syslog(LOG_WARNING, "ZCheckSrvAuthentication: name mismatch: '%s' vs '%s'",
name, sender);
krb5_auth_con_free(Z_krb5_ctx, authctx);
- free(name);
+ krb5_free_unparsed_name(Z_krb5_ctx, name);
free(authbuf);
return ZAUTH_FAILED;
}
- free(name);
+ krb5_free_unparsed_name(Z_krb5_ctx, name);
free(authbuf);
/* HOLDING: authctx */