X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=src%2Fmod_helsinki.cpp;h=aa3a1cf79441ba52c25b2ac749bde265f12c4f33;hp=23c3d407c1c53ea41d6c706c90ba0da025544841;hb=82b0575e71269b113acb2bb7c7541a470ed07c9a;hpb=22afe38a1f113ef7f2a46d1fde0141cf10b27eb4 diff --git a/src/mod_helsinki.cpp b/src/mod_helsinki.cpp index 23c3d40..aa3a1cf 100644 --- a/src/mod_helsinki.cpp +++ b/src/mod_helsinki.cpp @@ -1,5 +1,5 @@ /* This file is part of YAZ proxy - Copyright (C) 1998-2008 Index Data + Copyright (C) 1998-2011 Index Data YAZ proxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -151,7 +151,7 @@ int my_authenticate(void *user_handle, // 192.168.0.100 // 192.168.0.1-192.168.0.200 int status = YAZPROXY_RET_PERM; - if (ip_file && peer_IP) + if (*ip_file && peer_IP) { yaz_log(YLOG_DEBUG, "Authentication: checking ip address"); @@ -259,7 +259,9 @@ Yaz_ProxyModule_entry yazproxy_module = { /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab */ +