--- a/pdiscovery.c +++ b/pdiscovery.c @@ -466,7 +466,7 @@ case STATE_CR1: if(*str == '\n') state++; - else + else if(*str != '\r') state = STATE_BEGIN; break; case STATE_LF1: