[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-3523-gd097e3f
Jeremy Allison
jra at samba.org
Thu Mar 26 18:39:11 GMT 2009
The branch, v3-2-test has been updated
via d097e3f918853cf642c4a51f6ed3a4d8c85d283e (commit)
from f73d4cf1fcfd8f9e2543a222faed133472fd890c (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit d097e3f918853cf642c4a51f6ed3a4d8c85d283e
Author: Tim Prouty <tprouty at samba.org>
Date: Thu Mar 26 11:28:37 2009 -0700
s3: parse_packet can return NULL which is then dereferenced in match_mailslot_name
-----------------------------------------------------------------------
Summary of changes:
source/libsmb/unexpected.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/libsmb/unexpected.c b/source/libsmb/unexpected.c
index df4d211..4404b26 100644
--- a/source/libsmb/unexpected.c
+++ b/source/libsmb/unexpected.c
@@ -163,6 +163,10 @@ static int traverse_match(TDB_CONTEXT *ttdb, TDB_DATA kbuf, TDB_DATA dbuf,
ip,
port);
+ if (!p) {
+ return 0;
+ }
+
if ((state->match_type == NMB_PACKET &&
p->packet.nmb.header.name_trn_id == state->match_id) ||
(state->match_type == DGRAM_PACKET &&
--
Samba Shared Repository
More information about the samba-cvs
mailing list