X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_log.cpp;h=b46815c2d86214b456aba3b9af1da013872edfc1;hb=b54a57c7af29c89371aa65dc766adac9ed61f58c;hp=147f2e9d34943717a41f1a7d42df43d756d0b097;hpb=7084cb9d797bc2843c3c60137d215ddeb461a24f;p=metaproxy-moved-to-github.git diff --git a/src/filter_log.cpp b/src/filter_log.cpp index 147f2e9..b46815c 100644 --- a/src/filter_log.cpp +++ b/src/filter_log.cpp @@ -614,7 +614,8 @@ void yf::Log::Impl::process(mp::Package &package) Z_IdAuthentication *a = req->idAuthentication; if (a) { - if (a->which == Z_IdAuthentication_idPass) + if (a->which == Z_IdAuthentication_idPass + && a->u.idPass->userId) user = a->u.idPass->userId; else if (a->which == Z_IdAuthentication_open) user = a->u.open;