diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-01-31 01:32:51 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-01-31 01:32:51 +0000 |
commit | d90d26ece2144be142615e6455067ff1ef72554b (patch) | |
tree | 68c38978f1b3cb2e962d73d9c9d7d0f0e0abc4f8 /packet-msnip.c | |
parent | 70fa1b55ffa4bea99c903d1aa5931475f30d8484 (diff) |
If "pcap_compile()" fails to compile an empty filter string (because,
for example, the libpcap code generator doesn't support the link-layer
type for the capture), "dfilter_compile()" will succeed but return a
null rfcode pointer.
In that case, instead of telling people that it looks like a valid
display filter (which it does, but it also looks like a complete list of
all the Basque words likely to be known by Hammurabi :-)), and then
crashing when we try to "free" that non-existent dfilter code, we just
report it as a "sorry, couldn't compile that capture filter.
svn path=/trunk/; revision=9912
Diffstat (limited to 'packet-msnip.c')
0 files changed, 0 insertions, 0 deletions