Skip to content
  • Natanael Copa's avatar
    main/ngrep: fix segfault on invalid filters and add -dbg · 25948a45
    Natanael Copa authored
    A comment in configure.in says:
    
    > dnl For libpcap's that don't need the restart function called for
    > dnl multiple lexer passes, allow them to turn it off here.  This option
    > dnl exists solely to address a very rude email from the maintainer
    > dnl indicating that it shouldn't be called directly (and of course he
    > dnl was wrong because this is still needed).
    
    This indicates that you should not really call pcap_restart() directly,
    so we use this --disable-pcap-restart.
    
    This fixes segfault when the filter is invalid.
    
    ref #4466
    25948a45