diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-04-10 01:34:23 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-04-10 01:34:23 +0000 |
commit | 1725e025fd525b15365e63718a6036d4b5cb4683 (patch) | |
tree | 1c732f516a49fac1eafcd80f369a6bdd46f8b05f | |
parent | ebb6b14f3277171775540cc1e870c8419273b7da (diff) |
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
-rw-r--r-- | capture_wpcap_packet.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; |