From: Simo Sorce Date: Wed, 25 Apr 2012 14:19:07 +0000 (-0400) Subject: s4-auth-krb: avoid useless condition X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=9a585a314142637a0c15f04289fea2bc16d3295d;p=mat%2Fsamba.git s4-auth-krb: avoid useless condition Code bails out with ENOMEM 2 lines a bove if config_file is NULL anyways --- diff --git a/source4/auth/kerberos/krb5_init_context.c b/source4/auth/kerberos/krb5_init_context.c index e90f8a6e19..948f6870a4 100644 --- a/source4/auth/kerberos/krb5_init_context.c +++ b/source4/auth/kerberos/krb5_init_context.c @@ -441,7 +441,7 @@ smb_krb5_init_context_basic(TALLOC_CTX *tmp_ctx, } /* Use our local krb5.conf file by default */ - ret = krb5_prepend_config_files_default(config_file == NULL?"":config_file, &config_files); + ret = krb5_prepend_config_files_default(config_file, &config_files); if (ret) { DEBUG(1,("krb5_prepend_config_files_default failed (%s)\n", smb_get_krb5_error_message(krb5_ctx, ret, tmp_ctx)));