1
0

patch-libhttpd_ip_acl_c 661 B

123456789101112131415161718192021222324252627282930
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- wifidog-1.1.5.orig/libhttpd/ip_acl.c 2007-03-12 20:37:06.000000000 +0100
  3. +++ wifidog-1.1.5/libhttpd/ip_acl.c 2008-10-16 13:12:15.000000000 +0200
  4. @@ -52,22 +52,22 @@ static int scanCidr(val, result, length)
  5. cp = val;
  6. res1 = atoi(cp);
  7. - cp = index(cp,'.');
  8. + cp = strchr(cp,'.');
  9. if (!cp)
  10. return(-1);
  11. cp++;
  12. res2 = atoi(cp);
  13. - cp = index(cp,'.');
  14. + cp = strchr(cp,'.');
  15. if (!cp)
  16. return(-1);
  17. cp++;
  18. res3 = atoi(cp);
  19. - cp = index(cp,'.');
  20. + cp = strchr(cp,'.');
  21. if (!cp)
  22. return(-1);
  23. cp++;
  24. res4 = atoi(cp);
  25. - cp = index(cp,'/');
  26. + cp = strchr(cp,'/');
  27. if (!cp)
  28. {
  29. res5 = 32;