Minor change.
return PCAP_ERROR replaced by goto fail.