Skip to content

Commit

Permalink
Remove null check in krb5_gss_duplicate_name()
Browse files Browse the repository at this point in the history
Within the krb5 mechanism, we require minor_status to be writable
without checking.  Remove the null check in krb5_gss_duplicate_name()
to squash a forward-null defect.
  • Loading branch information
frozencemetery authored and greghudson committed Sep 11, 2019
1 parent b2f688e commit 9fd7bc1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/gssapi/krb5/duplicate_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ krb5_gss_duplicate_name(OM_uint32 *minor_status, const gss_name_t input_name,
krb5_error_code code;
krb5_gss_name_t princ, outprinc;

if (minor_status)
*minor_status = 0;
*minor_status = 0;

code = krb5_gss_init_context(&context);
if (code) {
Expand Down

0 comments on commit 9fd7bc1

Please sign in to comment.