auth: gensec: Parameters out_mem_ctx and ev are passed in the wrong order to gensec_s...
authorJeremy Allison <jra@samba.org>
Wed, 21 Oct 2015 18:13:46 +0000 (11:13 -0700)
committerVolker Lendecke <vl@samba.org>
Thu, 22 Oct 2015 09:27:19 +0000 (11:27 +0200)
Fix suggested by <lev@zadarastorage.com>. Fixes a memory leak.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11565

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Oct 22 11:27:19 CEST 2015 on sn-devel-104

auth/gensec/spnego.c

index c111b85bb01b3771cb70079c52e34916e5ad5482..73c76eb7dfc551bb68711796cdad9e0e1057c58c 100644 (file)
@@ -738,7 +738,7 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA
                        len = spnego_read_data(gensec_security, in, &spnego);
                        if (len == -1) {
                                return gensec_spnego_server_try_fallback(gensec_security, spnego_state,
-                                                                        out_mem_ctx, ev, in, out);
+                                                                        ev, out_mem_ctx, in, out);
                        }
                        /* client sent NegTargetInit, we send NegTokenTarg */