From 1725e025fd525b15365e63718a6036d4b5cb4683 Mon Sep 17 00:00:00 2001 From: ulfl Date: Mon, 10 Apr 2006 01:34:23 +0000 Subject: fix #868: don't assert but simply ignore values that don't have the proper size git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17845 f5534014-38df-0310-8fa8-9805f1628bb7 --- capture_wpcap_packet.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'capture_wpcap_packet.c') diff --git a/capture_wpcap_packet.c b/capture_wpcap_packet.c index 61ed96a4e8..1b132b95ad 100644 --- a/capture_wpcap_packet.c +++ b/capture_wpcap_packet.c @@ -270,8 +270,7 @@ wpcap_packet_request_uint(void *adapter, ULONG Oid, UINT *value) Status = wpcap_packet_request(adapter, Oid, FALSE /* !set */, (char *) value, &length); - if(Status) { - g_assert(length == sizeof(UINT)); + if(Status && length == sizeof(UINT)) { return 1; } else { return 0; @@ -288,8 +287,7 @@ wpcap_packet_request_ulong(void *adapter, ULONG Oid, ULONG *value) Status = wpcap_packet_request(adapter, Oid, FALSE /* !set */, (char *) value, &length); - if(Status) { - g_assert(length == sizeof(ULONG)); + if(Status && length == sizeof(ULONG)) { return 1; } else { return 0; -- cgit v1.2.3