diff options
author | pb <pb@FreeBSD.org> | 2008-02-05 23:42:38 +0000 |
---|---|---|
committer | pb <pb@FreeBSD.org> | 2008-02-05 23:42:38 +0000 |
commit | 12170a7b3f1afc618eee92f338c6799312fc0f7e (patch) | |
tree | 58b7ad58f04e777b609514c5a6e857ddff6db54b /sbin | |
parent | b84aef6e7f6102e01d6725fa1b705b152f94e768 (diff) | |
download | FreeBSD-src-12170a7b3f1afc618eee92f338c6799312fc0f7e.zip FreeBSD-src-12170a7b3f1afc618eee92f338c6799312fc0f7e.tar.gz |
Fix a bug in hexadecimal formatting of the CHAP digest: bytes >= 0x80
were formatted as 0xff, causing the authentication to fail.
Reviewed by: scottl
MFC after: 1 week
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/iscontrol/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/iscontrol/misc.c b/sbin/iscontrol/misc.c index 6586082..d524f72 100644 --- a/sbin/iscontrol/misc.c +++ b/sbin/iscontrol/misc.c @@ -158,7 +158,7 @@ char * bin2str(char *encoding, unsigned char *md, int blen) { int len; - char *dst, *ds, *cp; + unsigned char *dst, *ds, *cp; if(strncasecmp(encoding, "0x", 2) == 0) { char ofmt[5]; |