diff options
| author | John Kohl <jtkohl@mit.edu> | 1991-03-04 15:17:03 +0000 |
|---|---|---|
| committer | John Kohl <jtkohl@mit.edu> | 1991-03-04 15:17:03 +0000 |
| commit | 7ee75f40e2ce624076a64aef4fbb77911c4822b0 (patch) | |
| tree | 15453c15baedf1db0ab0fbc70eb2514b0f106d7d | |
| parent | dbb8ae21beab141f0edec699ed75f0664af2d887 (diff) | |
| download | krb5-7ee75f40e2ce624076a64aef4fbb77911c4822b0.tar.gz krb5-7ee75f40e2ce624076a64aef4fbb77911c4822b0.tar.xz krb5-7ee75f40e2ce624076a64aef4fbb77911c4822b0.zip | |
don't deref newkey unless it's there..
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1847 dc483132-0cff-0310-8789-dd5450dbe970
| -rw-r--r-- | src/lib/krb5/krb/mk_req_ext.c | 7 |
1 files 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 * <krb5/copyright.h>. @@ -15,7 +16,6 @@ static char rcsid_mk_req_ext_c[] = "$Id$"; #endif /* !lint & !SABER */ -#include <krb5/copyright.h> #include <krb5/krb5.h> #include <krb5/asn1.h> @@ -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(); |
