diff options
author | mjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-26 16:26:16 +0000 |
---|---|---|
committer | mjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-03-26 16:26:16 +0000 |
commit | f3c650bf15d317b2bcc87692bad214154a32452c (patch) | |
tree | 708bda83ed6c0f2023915a7a340c3ed0fd529bf7 | |
parent | f7080e3bfb15e7307b0b7f2a0671fd8e02d15ab9 (diff) | |
download | busybox-w32-f3c650bf15d317b2bcc87692bad214154a32452c.tar.gz busybox-w32-f3c650bf15d317b2bcc87692bad214154a32452c.tar.bz2 busybox-w32-f3c650bf15d317b2bcc87692bad214154a32452c.zip |
Fix in_ether bug regarding hex digits reported by Jonas Holmberg <jonas.holmberg@axis.com>.
git-svn-id: svn://busybox.net/trunk/busybox@2196 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | ifconfig.c | 6 | ||||
-rw-r--r-- | networking/ifconfig.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ifconfig.c b/ifconfig.c index 704909c69..61d73f56b 100644 --- a/ifconfig.c +++ b/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 { |
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 { |