|
@@ -258,6 +258,11 @@ static smb_message *smb_trans2_find_next (smb_session *s, smb_tid tid, uint16_t
|
|
}
|
|
}
|
|
|
|
|
|
msg_find_next2 = smb_message_new(SMB_CMD_TRANS2);
|
|
msg_find_next2 = smb_message_new(SMB_CMD_TRANS2);
|
|
|
|
+ if (!msg_find_next2)
|
|
|
|
+ {
|
|
|
|
+ free(utf_pattern);
|
|
|
|
+ return NULL;
|
|
|
|
+ }
|
|
msg_find_next2->packet->header.tid = (uint16_t)tid;
|
|
msg_find_next2->packet->header.tid = (uint16_t)tid;
|
|
|
|
|
|
SMB_MSG_INIT_PKT(tr2_find_next2);
|
|
SMB_MSG_INIT_PKT(tr2_find_next2);
|