add a internal socket for chilli, so you can control connection from external script...
[openwrt/svn-archive/archive.git] / net / chillispot / patches / 120-fix_bufferoverflow.patch
1 --- a/src/radius.c
2 +++ b/src/radius.c
3 @@ -1002,7 +1002,7 @@ int radius_pwencode(struct radius_t *thi
4 }
5
6 /* Copy first 128 octets of src into dst */
7 - if (srclen <= 128)
8 + if (srclen > 128)
9 memcpy(dst, src, 128);
10 else
11 memcpy(dst, src, srclen);