summaryrefslogtreecommitdiffstats
path: root/net/chillispot/patches/120-fix_bufferoverflow.patch
blob: abc293b2bbe7b8af5a0955e0378fae58089f2384 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/radius.c
+++ b/src/radius.c
@@ -1002,7 +1002,7 @@ int radius_pwencode(struct radius_t *thi
   }
 
   /* Copy first 128 octets of src into dst */
-  if (srclen <= 128) 
+  if (srclen > 128)
     memcpy(dst, src, 128);
   else
     memcpy(dst, src, srclen);