mirror of
https://github.com/samba-team/samba.git
synced 2025-12-03 04:23:50 +03:00
r14355: Try and fix Coverity #158 by making the pointer
aliasing clearer. This isn't a bug but a code clarification. Jeremy.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
338538410d
commit
7ada96a1cf
@@ -426,18 +426,20 @@ We were expecting seq %u\n", reply_seq_number, saved_seq ));
|
||||
static void simple_free_signing_context(struct smb_sign_info *si)
|
||||
{
|
||||
struct smb_basic_signing_context *data = si->signing_context;
|
||||
struct outstanding_packet_lookup *list = data->outstanding_packet_list;
|
||||
struct outstanding_packet_lookup *list;
|
||||
struct outstanding_packet_lookup *next;
|
||||
|
||||
while (list) {
|
||||
struct outstanding_packet_lookup *old_head = list;
|
||||
DLIST_REMOVE(list, list);
|
||||
SAFE_FREE(old_head);
|
||||
for (list = data->outstanding_packet_list; list; list = next) {
|
||||
next = list->next;
|
||||
DLIST_REMOVE(data->outstanding_packet_list, list);
|
||||
SAFE_FREE(list);
|
||||
}
|
||||
|
||||
data_blob_free(&data->mac_key);
|
||||
|
||||
if (data->trans_info)
|
||||
if (data->trans_info) {
|
||||
SAFE_FREE(data->trans_info);
|
||||
}
|
||||
|
||||
SAFE_FREE(si->signing_context);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user