]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Follow-up on krb5_gss_duplicate_name() null check
authorGreg Hudson <ghudson@mit.edu>
Tue, 24 Sep 2019 05:47:18 +0000 (01:47 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 24 Sep 2019 05:47:18 +0000 (01:47 -0400)
Commit 9fd7bc179f0bd74fc83c1edf0247dcfd87fc73e6 missed a second null
check, so the forward-null defect was not squashed.  Remove that one
as well.

src/lib/gssapi/krb5/duplicate_name.c

index ea53e9c0d6916b015e172cedeb3c18175a5c6330..670b2b509f76c38d93ac48e9fffeadc64f0baa49 100644 (file)
@@ -38,8 +38,7 @@ krb5_gss_duplicate_name(OM_uint32 *minor_status, const gss_name_t input_name,
 
     code = krb5_gss_init_context(&context);
     if (code) {
-        if (minor_status)
-            *minor_status = code;
+        *minor_status = code;
         return GSS_S_FAILURE;
     }