smtp-layer: add HELO parsing test in unittest

pull/1671/head
Eric Leblond 11 years ago
parent 8fd88f543d
commit 534360fc02

@ -4494,6 +4494,13 @@ int SMTPParserTest14(void)
SCMutexUnlock(&f.m);
goto end;
}
if ((smtp_state->helo_len != 7) || strncmp("boo.com", (char *)smtp_state->helo, 7)) {
printf("incorrect parsing of HELO field '%s' (%d)\n", smtp_state->helo, smtp_state->helo_len);
SCMutexUnlock(&f.m);
goto end;
}
SCMutexUnlock(&f.m);
if (smtp_state->input_len != 0 ||
smtp_state->cmds_cnt != 0 ||

Loading…
Cancel
Save