summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb5/krb/mk_req_ext.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/lib/krb5/krb/mk_req_ext.c b/src/lib/krb5/krb/mk_req_ext.c
index 1595a8fa3..ecbc895ae 100644
--- a/src/lib/krb5/krb/mk_req_ext.c
+++ b/src/lib/krb5/krb/mk_req_ext.c
@@ -141,15 +141,14 @@ krb5_data *outbuf;
return(retval);
}
- if (authentp) {
+ /* Null out these fields, to prevent pointer sharing problems;
+ * they were supplied by the caller
+ */
+ authent.client = NULL;
+ authent.checksum = NULL;
+ if (authentp)
*authentp = authent;
- /* Null out these fields, to prevent pointer sharing problems
- * The caller won't need these fields anyway, since they were
- * supplied by the caller
- */
- authentp->client = NULL;
- authentp->checksum = NULL;
- } else
+ else
krb5_free_authenticator_contents(&authent);
#define cleanup_scratch() { (void) memset(scratch->data, 0, scratch->length); \