projects
/
srvx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5eee63a
)
Avoid crash when logging a HelpServ request with no request log file.
author
Michael Poole
<mdpoole@troilus.org>
Tue, 8 Jul 2008 01:56:35 +0000
(21:56 -0400)
committer
Michael Poole
<mdpoole@troilus.org>
Tue, 8 Jul 2008 01:56:35 +0000
(21:56 -0400)
src/mod-helpserv.c (helpserv_log_request): Check reqlog_f before using it.
src/mod-helpserv.c
patch
|
blob
|
history
diff --git
a/src/mod-helpserv.c
b/src/mod-helpserv.c
index e360db963379bcac14bb7b58b505aeeaa83c342b..dfb95b60b84b55d6967f53bfe0868b9735d1e30c 100644
(file)
--- a/
src/mod-helpserv.c
+++ b/
src/mod-helpserv.c
@@
-702,7
+702,7
@@
static void helpserv_log_request(struct helpserv_request *req, const char *reaso
assert(req != NULL);
assert(reason != NULL);
- if (!(ctx = saxdb_open_context(reqlog_f)))
+ if (!
reqlog_f || !
(ctx = saxdb_open_context(reqlog_f)))
return;
sprintf(key, "%s-%lu-%lu", req->hs->helpserv->nick, (unsigned long)req->opened, req->id);
if ((res = setjmp(*saxdb_jmp_buf(ctx))) != 0) {