diff options
Diffstat (limited to 'epan/inet_aton.c')
-rw-r--r-- | epan/inet_aton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/inet_aton.c b/epan/inet_aton.c index f101d10cd1..880d669117 100644 --- a/epan/inet_aton.c +++ b/epan/inet_aton.c @@ -59,7 +59,7 @@ static char sccsid[] = "@(#)inet_addr.c 8.1 (Berkeley) 6/17/93"; #include "inet_aton.h" -/* +/* * Check whether "cp" is a valid ascii representation * of an Internet address and convert to a binary address. * Returns 1 if the address is valid, 0 if not. @@ -98,7 +98,7 @@ inet_aton(cp_arg, addr) continue; } if (base == 16 && isascii(c) && isxdigit(c)) { - val = (val << 4) + + val = (val << 4) + (c + 10 - (islower(c) ? 'a' : 'A')); cp++; continue; |