mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Fix bug 8305 - nmbd segfaults - when using "smbtree ..."
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jul 13 16:35:16 CEST 2011 on sn-devel-104
This commit is contained in:
parent
5e0ff955ad
commit
9b3357c54e
@ -221,7 +221,7 @@ static void nb_packet_got_query(struct tevent_req *req)
|
|||||||
|
|
||||||
nread = read_packet_recv(req, talloc_tos(), &buf, &err);
|
nread = read_packet_recv(req, talloc_tos(), &buf, &err);
|
||||||
TALLOC_FREE(req);
|
TALLOC_FREE(req);
|
||||||
if (nread < sizeof(struct nb_packet_query)) {
|
if (nread < (ssize_t)sizeof(struct nb_packet_query)) {
|
||||||
DEBUG(10, ("read_packet_recv returned %d (%s)\n",
|
DEBUG(10, ("read_packet_recv returned %d (%s)\n",
|
||||||
(int)nread,
|
(int)nread,
|
||||||
(nread == -1) ? strerror(err) : "wrong length"));
|
(nread == -1) ? strerror(err) : "wrong length"));
|
||||||
|
Loading…
Reference in New Issue
Block a user