summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-11-11 00:23:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:45 -0500
commit58406b0d1c1d2d95e559d188450af79d44a1f2f3 (patch)
tree3b371e5fcf8dbf49cd90edafe70a3de967ccc227 /source3
parentbf6bb749851ec757ee2e110597f2c492acc28f5c (diff)
downloadsamba-58406b0d1c1d2d95e559d188450af79d44a1f2f3.tar.gz
samba-58406b0d1c1d2d95e559d188450af79d44a1f2f3.tar.bz2
samba-58406b0d1c1d2d95e559d188450af79d44a1f2f3.zip
r19659: Fix bug #4187. Possible crash in signing on/off code.
Jeremy. (This used to be commit 78c1c43523d787825bdb6d52e128bf0af5eccaae)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/smb_signing.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/libsmb/smb_signing.c b/source3/libsmb/smb_signing.c
index a2df0cc38a..df74b2db36 100644
--- a/source3/libsmb/smb_signing.c
+++ b/source3/libsmb/smb_signing.c
@@ -616,6 +616,10 @@ BOOL client_set_trans_sign_state_on(struct cli_state *cli, uint16 mid)
return True;
}
+ if (!data) {
+ return False;
+ }
+
if (!set_sequence_can_delete_flag(&data->outstanding_packet_list, mid, False)) {
return False;
}
@@ -637,6 +641,10 @@ BOOL client_set_trans_sign_state_off(struct cli_state *cli, uint16 mid)
return True;
}
+ if (!data) {
+ return False;
+ }
+
if (!set_sequence_can_delete_flag(&data->outstanding_packet_list, mid, True)) {
return False;
}