]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - helpers/digest_auth/eDirectory/ldap_backend.cc
Boilerplate: update copyright blurbs on Squid helpers
[thirdparty/squid.git] / helpers / digest_auth / eDirectory / ldap_backend.cc
index e7deefc258717a194a5da085d9f59fa9be1cc4f4..ec6b6baa035b24d6dcfe3b26c45ab8d73aa2e0d1 100644 (file)
@@ -1,8 +1,12 @@
 /*
+ * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
  *
- *
- *
- * ldap_backend.c
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
+/*
  * AUTHOR: Flavio Pescuma, MARA Systems AB <flavio@marasystems.com>
  */
 #include "squid.h"
@@ -286,7 +290,8 @@ retrydnattr:
             value = values;
             while (*value) {
                 if (encrpass) {
-                    if (strcmp(strtok(*value, delimiter), realm) == 0) {
+                    const char *t = strtok(*value, delimiter);
+                    if (t && strcmp(t, realm) == 0) {
                         password = strtok(NULL, delimiter);
                         break;
                     }