replace: add missing malloc return value check.

remotes/origin/master
Victor Julien 14 years ago
parent dbf5d79e43
commit 5933cee2ff

@ -155,6 +155,8 @@ DetectReplaceList * DetectReplaceAddToList(DetectReplaceList *replist, uint8_t *
SCLogDebug("replace: Adding match");
newlist = SCMalloc(sizeof(DetectReplaceList));
if (newlist == NULL)
return NULL;
newlist->found = found;
newlist->cd = cd;
newlist->next = NULL;

Loading…
Cancel
Save