From 7ee75f40e2ce624076a64aef4fbb77911c4822b0 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Mon, 4 Mar 1991 15:17:03 +0000 Subject: [PATCH] don't deref newkey unless it's there.. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1847 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/mk_req_ext.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/krb/mk_req_ext.c b/src/lib/krb5/krb/mk_req_ext.c index 9bf9f8b9d..7c1c1ca82 100644 --- a/src/lib/krb5/krb/mk_req_ext.c +++ b/src/lib/krb5/krb/mk_req_ext.c @@ -2,7 +2,8 @@ * $Source$ * $Author$ * - * Copyright 1990 by the Massachusetts Institute of Technology. + * Copyright 1990,1991 by the Massachusetts Institute of Technology. + * All Rights Reserved. * * For copying and distribution information, please see the file * . @@ -15,7 +16,6 @@ static char rcsid_mk_req_ext_c[] = "$Id$"; #endif /* !lint & !SABER */ -#include #include #include @@ -118,7 +118,8 @@ krb5_data *outbuf; } } #define cleanup_key() {if (newkey) krb5_free_keyblock(*newkey);} - if (retval = generate_authenticator(&authent, creds, checksum, *newkey, + if (retval = generate_authenticator(&authent, creds, checksum, + newkey ? *newkey : 0, sequence)) { cleanup_key(); cleanup_ticket(); -- 2.26.2