s4:http/gensec: add missing tevent_req_done() to gensec_http_ntlm_update_done()
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Jul 2017 09:56:21 +0000 (11:56 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Jul 2017 14:23:48 +0000 (16:23 +0200)
This was missing in commit d718e92d5e145dccd492c46febc249e462ce50c6.

Sadly we can't have automated tests for this as we only implement
the client side for this protocol.

I've tested with using:

bin/smbtorture \
  -W BLA --realm=BLA.BASE \
  -s /dev/null -Uadministrator%A1b2C3d4 \
  ncacn_http:w2k8r2-219[593,RpcProxy=w2k8r2-219.bla.base,HttpUseTls=false,HttpAuthOption=basic] \
  rpc.epmapper.epmapper.Lookup_simple \

and:

bin/smbtorture \
  -W BLA --realm=BLA.BASE \
  -s /dev/null -Uadministrator%A1b2C3d4 \
  ncacn_http:w2k8r2-219[593,RpcProxy=w2k8r2-219.bla.base,HttpUseTls=false,HttpAuthOption=ntlm] \
  rpc.epmapper.epmapper.Lookup_simple \

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/lib/http/gensec/ntlm.c

index 7d692ed9b7ddfe7c7d7de93b1455274842f507fe..788fb7d3636b90be215ca275acae2c34bfefa412 100644 (file)
@@ -134,7 +134,7 @@ static void gensec_http_ntlm_update_done(struct tevent_req *subreq)
        }
 
        state->out = data_blob_string_const(str);
-       return;
+       tevent_req_done(req);
 }
 
 static NTSTATUS gensec_http_ntlm_update_recv(struct tevent_req *req,