2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

3000. [bug] More TKEY/GSS fixes:

- nsupdate can now get the default realm from
			   the user's Kerberos principal
			 - corrected gsstest compilation flags
			 - improved documentation
			 - fixed some NULL dereferences
			[RT #22795]
This commit is contained in:
Evan Hunt
2010-12-24 02:20:47 +00:00
parent 988e9fd7c0
commit d9ad0a55bb
8 changed files with 86 additions and 99 deletions

View File

@@ -16,7 +16,7 @@
*/
/*
* $Id: tsig.c,v 1.143 2010/12/09 00:54:34 marka Exp $
* $Id: tsig.c,v 1.144 2010/12/24 02:20:47 each Exp $
*/
/*! \file */
#include <config.h>
@@ -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);