From b54a57c7af29c89371aa65dc766adac9ed61f58c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 31 Mar 2014 19:35:05 +0200 Subject: [PATCH 1/1] log: fix crash idPass user is omitted MP-530 --- src/filter_log.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 1.7.10.4