]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: D Kazarov <d.y.kazarov@mail.ru>
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 7 Feb 2011 12:21:27 +0000 (05:21 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 7 Feb 2011 12:21:27 +0000 (05:21 -0700)
Bug 3137: RADIUS auth helper does not send identifier to RADIUS server

helpers/basic_auth/squid_radius_auth/squid_rad_auth.c

index bc947148f277d86af65d1898192eb6f7b95da331..20ab75c8e0dce29d7c3ba320b2484bee9df8aca7 100644 (file)
@@ -387,6 +387,7 @@ authenticate(int socket_fd, const char *username, const char *passwd)
         *ptr++ = len + 2;
         memcpy(ptr, identifier, len);
         ptr += len;
+        total_length += len + 2;
     } else {
         *ptr++ = PW_NAS_IP_ADDRESS;
         *ptr++ = 6;