r12439: No need to keep walking this list if we find the match.
authorAndrew Bartlett <abartlet@samba.org>
Thu, 22 Dec 2005 21:43:16 +0000 (21:43 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:47:39 +0000 (13:47 -0500)
Andrew Bartlett

source/auth/gensec/spnego.c

index 461141cc84e6c99b4904ccfd3dc58f99279b2ed4..57853c9c61305cbe5a100927f521dedd0c51eb86 100644 (file)
@@ -352,6 +352,7 @@ static NTSTATUS gensec_spnego_parse_negTokenInit(struct gensec_security *gensec_
                                }
 
                                spnego_state->neg_oid = all_sec[i].oid;
                                }
 
                                spnego_state->neg_oid = all_sec[i].oid;
+                               break;
                        }
                }
        }
                        }
                }
        }