projects
/
metaproxy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7084cb9
)
log: fix crash idPass user is omitted MP-530
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 31 Mar 2014 17:35:05 +0000
(19:35 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 31 Mar 2014 17:35:05 +0000
(19:35 +0200)
src/filter_log.cpp
patch
|
blob
|
history
diff --git
a/src/filter_log.cpp
b/src/filter_log.cpp
index
147f2e9
..
b46815c
100644
(file)
--- 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;