diff options
-rw-r--r-- | src/lib/krb5/krb/rd_rep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/krb5/krb/rd_rep.c b/src/lib/krb5/krb/rd_rep.c index cea75674a..bbd848090 100644 --- a/src/lib/krb5/krb/rd_rep.c +++ b/src/lib/krb5/krb/rd_rep.c @@ -104,6 +104,7 @@ free(scratch.data);} /* now decode the decrypted stuff */ retval = decode_krb5_ap_rep_enc_part(&scratch, repl); clean_scratch(); - (*repl)->subkey->etype = reply->enc_part.etype; + if ((*repl)->subkey) + (*repl)->subkey->etype = reply->enc_part.etype; return retval; } |