1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Second attempt to fix bug #8384 - Windows XP clients seem to crash smbd process every once in a while.

Don't just use the first entry in back_channels as a talloc context
to allocate a long-lived chan entry on - must be NULL. It's already
correctly deleted when the last reference goes away.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Oct 26 02:42:35 CEST 2011 on sn-devel-104
This commit is contained in:
Jeremy Allison 2011-10-25 15:31:48 -07:00
parent 414df4b9c4
commit 0f746fcad8

View File

@ -2613,7 +2613,7 @@ static bool srv_spoolss_replyopenprinter(int snum, const char *printer,
/* the +2 is to strip the leading 2 backslashs */
fstrcpy(unix_printer, printer + 2);
chan = talloc_zero(back_channels, struct notify_back_channel);
chan = talloc_zero(NULL, struct notify_back_channel);
if (!chan) {
return false;
}