diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2001-03-26 16:26:16 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2001-03-26 16:26:16 +0000 |
commit | 049dc25fe77b1225d50460800b911d765f120e85 (patch) | |
tree | 708bda83ed6c0f2023915a7a340c3ed0fd529bf7 /networking | |
parent | 36eff9ac554fa8021b3ec573369bfe9470dea379 (diff) | |
download | busybox-w32-049dc25fe77b1225d50460800b911d765f120e85.tar.gz busybox-w32-049dc25fe77b1225d50460800b911d765f120e85.tar.bz2 busybox-w32-049dc25fe77b1225d50460800b911d765f120e85.zip |
Fix in_ether bug regarding hex digits reported by Jonas Holmberg <jonas.holmberg@axis.com>.
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ifconfig.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c index 704909c69..61d73f56b 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c | |||
@@ -15,7 +15,7 @@ | |||
15 | * Foundation; either version 2 of the License, or (at | 15 | * Foundation; either version 2 of the License, or (at |
16 | * your option) any later version. | 16 | * your option) any later version. |
17 | * | 17 | * |
18 | * $Id: ifconfig.c,v 1.9 2001/03/15 20:48:45 andersen Exp $ | 18 | * $Id: ifconfig.c,v 1.10 2001/03/26 16:26:16 mjn3 Exp $ |
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
@@ -472,9 +472,9 @@ in_ether(char *bufp, struct sockaddr *sap) | |||
472 | if (c >= '0' && c <= '9') { | 472 | if (c >= '0' && c <= '9') { |
473 | c -= '0'; | 473 | c -= '0'; |
474 | } else if (c >= 'a' && c <= 'f') { | 474 | } else if (c >= 'a' && c <= 'f') { |
475 | c -= ('a' + 10); | 475 | c -= ('a' - 10); |
476 | } else if (c >= 'A' && c <= 'F') { | 476 | } else if (c >= 'A' && c <= 'F') { |
477 | c -= ('A' + 10); | 477 | c -= ('A' - 10); |
478 | } else if (j && (c == ':' || c == 0)) { | 478 | } else if (j && (c == ':' || c == 0)) { |
479 | break; | 479 | break; |
480 | } else { | 480 | } else { |