mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r19659: Fix bug #4187. Possible crash in signing on/off code.
Jeremy.
(This used to be commit 78c1c43523
)
This commit is contained in:
parent
bf6bb74985
commit
58406b0d1c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user