From: Volker Lendecke Date: Thu, 11 Jun 2026 11:24:17 +0000 (+0200) Subject: gensec: Make gensec_security_by_oid_list() callable with skip==NULL X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddf533bdc14fce86ba4522c605a807b1afd26fcd;p=thirdparty%2Fsamba.git gensec: Make gensec_security_by_oid_list() callable with skip==NULL Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/auth/gensec/gensec_start.c b/auth/gensec/gensec_start.c index 1fab9989089..1a4b44d423c 100644 --- a/auth/gensec/gensec_start.c +++ b/auth/gensec/gensec_start.c @@ -479,7 +479,9 @@ _PUBLIC_ const struct gensec_security_ops_wrapper *gensec_security_by_oid_list( continue; } for (oid_idx = 0; oid_strings[oid_idx]; oid_idx++) { - if (strcmp(oid_strings[oid_idx], skip) == 0) { + if ((skip != NULL) && + (strcmp(oid_strings[oid_idx], skip) == 0)) + { continue; }