]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Chad Naugle <chad.naugle@travimp.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 15 Dec 2010 21:59:50 +0000 (14:59 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 15 Dec 2010 21:59:50 +0000 (14:59 -0700)
ext_edirectory_user_ip: hack fix -3 result in StringSplit algorithm

helpers/external_acl/eDirectory_userip/ext_edirectory_userip_acl.cc

index 9414b58c4b08c5b242c9ac7e827574e734899dda..3e6056084ed4771272cea34141b396ffb77a41db 100644 (file)
@@ -19,7 +19,7 @@
  *
  ********************************************************************************
  *
- * ext_edirectory_userip_acl.cc -- Rev 2010-12-06
+ * ext_edirectory_userip_acl.cc -- Rev 2010-12-15
  *
  */
 
@@ -281,7 +281,9 @@ StringSplit(char *In_Str, char chr, char *Out_Str, size_t Out_Sz)
     } else {
         // chr not found (or \0 found first). Wipe whole input buffer.
         memset(In_Str, 0, In_Len);
-        return (-3);
+//        return (-3);
+// Returning <0 breaks current ConvertIP() code for last object
+       return (i);
     }
 
     // move the unused In_Str forward
@@ -332,7 +334,9 @@ BinarySplit(void *In_Obj, size_t In_Sz, char chr, void *Out_Obj, size_t Out_Sz)
     } else {
         // chr not found
         memset(In_Obj, 0, In_Sz);
-        return (-3);
+//        return (-3);
+// Returning <0 breaks current code for last object
+       return (i);
     }
 
     // move the unused In_Obj forward