don't deref newkey unless it's there..
authorJohn Kohl <jtkohl@mit.edu>
Mon, 4 Mar 1991 15:17:03 +0000 (15:17 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Mon, 4 Mar 1991 15:17:03 +0000 (15:17 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1847 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/mk_req_ext.c

index 9bf9f8b9dc03648cf2dae9ab9c3e0f9c96ab039a..7c1c1ca8216ba892873fc2f8029f578b9ef233b9 100644 (file)
@@ -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();