aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty_interface_layer3.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-06-30 09:00:46 +0200
committerHarald Welte <laforge@gnumonks.org>2010-06-30 09:01:35 +0200
commitbd17b39fd2dd4c520c21951b90dccf153165d657 (patch)
treec35b9d62b0067aab6a536e0c35de8dd4f1a2f3a1 /openbsc/src/vty_interface_layer3.c
parent43ef6483db34037e35273d3bf9ffb250ceacf8fc (diff)
[BSC] VTY: Fix parsing of uppercase hex digits
Diffstat (limited to 'openbsc/src/vty_interface_layer3.c')
-rw-r--r--openbsc/src/vty_interface_layer3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/vty_interface_layer3.c b/openbsc/src/vty_interface_layer3.c
index d80f7c9b..9a2c5fac 100644
--- a/openbsc/src/vty_interface_layer3.c
+++ b/openbsc/src/vty_interface_layer3.c
@@ -63,7 +63,7 @@ static int hexparse(const char *str, u_int8_t *b, int max_len)
else if (c >= 'a' && c <= 'f')
v = 10 + (c - 'a');
else if (c >= 'A' && c <= 'F')
- v = 10 + (c - 'a');
+ v = 10 + (c - 'A');
else
return -1;
b[i>>1] |= v << (i&1 ? 0 : 4);