Null deref fix for detect-engine-port.c

remotes/origin/master-1.0.x
William Metcalf 16 years ago committed by Victor Julien
parent afa8a2b8ba
commit 73d2349149

@ -1330,6 +1330,9 @@ DetectPort *PortParse(char *str) {
/* we dup so we can put a nul-termination in it later */
char *port = portdup;
if (port == NULL) {
goto error;
}
/* handle the negation case */
if (port[0] == '!') {

Loading…
Cancel
Save