]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
gensec: Slightly simplify gensec_security_oids_from_ops()
authorVolker Lendecke <vl@samba.org>
Thu, 11 Jun 2026 17:13:27 +0000 (19:13 +0200)
committerAnoop C S <anoopcs@samba.org>
Wed, 17 Jun 2026 09:33:52 +0000 (09:33 +0000)
We checked for "ops == NULL" above, and we never change it.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Autobuild-User(master): Anoop C S <anoopcs@samba.org>
Autobuild-Date(master): Wed Jun 17 09:33:52 UTC 2026 on atb-devel-224

auth/gensec/gensec_start.c

index 54928b82ced2fcc440908d91fd2ab81391dff85d..d3ba0dcc9b09d45a69340918871d335ac8ae8235 100644 (file)
@@ -535,7 +535,7 @@ static const char **gensec_security_oids_from_ops(
                return NULL;
        }
 
-       for (i=0; ops && ops[i]; i++) {
+       for (i=0; ops[i]; i++) {
                if (!ops[i]->oid) {
                        continue;
                }