/*
+ * 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"
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;
}