From db5677d071fc58f38cab4ab800111455a8637edb Mon Sep 17 00:00:00 2001 From: Tim Prouty Date: Tue, 24 Mar 2009 17:05:16 -0700 Subject: s3: parse_packet can return NULL which is then dereferenced in match_mailslot_name --- source3/libsmb/unexpected.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/libsmb/unexpected.c b/source3/libsmb/unexpected.c index df4d2119e2..d123e24aa8 100644 --- a/source3/libsmb/unexpected.c +++ b/source3/libsmb/unexpected.c @@ -162,6 +162,8 @@ static int traverse_match(TDB_CONTEXT *ttdb, TDB_DATA kbuf, TDB_DATA dbuf, state->match_type, ip, port); + if (!p) + return 0; if ((state->match_type == NMB_PACKET && p->packet.nmb.header.name_trn_id == state->match_id) || -- cgit