Fix potential crash in classtype parsing code.

remotes/origin/master-1.0.x
Victor Julien 15 years ago
parent a11b3a1aa2
commit 487ed2cde6

@ -449,6 +449,10 @@ static int ReassembleInsertSegment(TcpStream *stream, TcpSegment *seg, Packet *p
int ret_value = 0;
char return_seg = FALSE;
if (seg == NULL) {
goto end;
}
if (list_seg == NULL) {
SCLogDebug("empty list, inserting seg %p seq %" PRIu32 ", "
"len %" PRIu32 "", seg, seg->seq, seg->payload_len);

@ -236,6 +236,9 @@ int SCClassConfAddClasstype(char *rawstr, uint8_t index, DetectEngineCtx *de_ctx
SCLogInfo("pcre_get_substring() failed");
goto error;
}
if (ct_priority_str == NULL) {
goto error;
}
ct_priority = atoi(ct_priority_str);

Loading…
Cancel
Save