r4326: fix memory leak
[samba.git] / source4 / libcli / auth / spnego.c
index a13afbb186f772518948e43495c820e75c5450be..01757a04873cacf631f1623c8f01ab93e3537bd8 100644 (file)
@@ -479,7 +479,7 @@ static NTSTATUS gensec_spnego_update(struct gensec_security *gensec_security, TA
                        spnego_out.type = SPNEGO_NEG_TOKEN_INIT;
                        spnego_out.negTokenInit.mechTypes = mechlist;
                        spnego_out.negTokenInit.reqFlags = 0;
-                       spnego_out.negTokenInit.mechListMIC = data_blob(mechListMIC, strlen(mechListMIC));
+                       spnego_out.negTokenInit.mechListMIC = data_blob_string_const(mechListMIC);
                        spnego_out.negTokenInit.mechToken = unwrapped_out;
                        
                        if (spnego_write_data(out_mem_ctx, out, &spnego_out) == -1) {