X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmod_sample.cpp;h=0c5ef0ce5b21a3aa735f69269d607e815d7f0ab3;hb=6b3595eef97514b76b3c3b1e5c06b2fbba3bbbe4;hp=eebdf329a1ca8e0f1759a2cdf2613c324c7ba099;hpb=dfdff5f2d2825a500d3d27200d2ec32ee063a975;p=yazproxy-moved-to-github.git diff --git a/src/mod_sample.cpp b/src/mod_sample.cpp index eebdf32..0c5ef0c 100644 --- a/src/mod_sample.cpp +++ b/src/mod_sample.cpp @@ -1,5 +1,5 @@ /* This file is part of YAZ proxy - Copyright (C) 1998-2009 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 @@ -51,7 +51,7 @@ int my_authenticate(void *user_handle, #if YAZ_HAVE_XSLT xmlNodePtr ptr = (xmlNodePtr) element_ptr; struct _xmlAttr *attr; - + for (attr = ptr->properties; attr; attr = attr->next) { if (!strcmp((const char *) attr->name, "args") && @@ -64,7 +64,7 @@ int my_authenticate(void *user_handle, sleep(2); fprintf(stderr, "my_authenticate: target=%s user=%s group=%s args=%s IP=%s" "\n", - target_name ? target_name : "none", + target_name ? target_name : "none", user ? user : "none", group ? group : "none", args ? args : "none", peer_IP);