fix sniffer coverity problem