Heal damage of
79f494e51e..
That context is being passed around and freed but is never
actually allocated on that stack.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13737
Signed-off-by: Philipp Gesang <philipp.gesang@intra2net.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit
5c928d7cd1d0ac994fe95892eec235b939ad2ec9)
return;
}
+ ctx = talloc_new(NULL);
+ if (ctx == NULL) {
+ DBG_ERR("Out of memory creating temporary context\n");
+ return;
+ }
+
/* Need to refetch the address each time as the destination server may
* have disconnected and reconnected in the interim, in which case
* messages may get lost