git.samba.org
/
tridge
/
bind9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fc0b3d
)
tsig: don't abort on NULL tkey->creator
author
Andrew Tridgell
<tridge@samba.org>
Tue, 21 Dec 2010 02:49:40 +0000
(13:49 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 21 Dec 2010 07:22:27 +0000
(18:22 +1100)
lib/dns/tsig.c
patch
|
blob
|
history
diff --git
a/lib/dns/tsig.c
b/lib/dns/tsig.c
index 117e0b8e72f27568e85bd071dd05f0877939c701..4369d4803c241b884ab5a2b946f65147a6448556 100644
(file)
--- a/
lib/dns/tsig.c
+++ b/
lib/dns/tsig.c
@@
-203,8
+203,10
@@
tsig_log(dns_tsigkey_t *key, int level, const char *fmt, ...) {
else
strcpy(namestr, "<null>");
- if (key != NULL && key->generated)
+ if (key != NULL && key->generated
&& key->creator
)
dns_name_format(key->creator, creatorstr, sizeof(creatorstr));
+ else
+ strcpy(creatorstr, "<null>");
va_start(ap, fmt);
vsnprintf(message, sizeof(message), fmt, ap);