Fix error case return in sniff_request_type