From: David Vossel Date: Tue, 10 Nov 2009 17:15:57 +0000 (+0000) Subject: don't crash on log message in solaris X-Git-Tag: 1.4.27-rc5~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbd0215153ff30cf5b721d090de91765099da457;p=thirdparty%2Fasterisk.git don't crash on log message in solaris AST-2009-006 (closes issue #16206) Reported by: bklang Tested by: bklang git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@229167 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index fb3c8bdc10..d2c361dd24 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -4319,7 +4319,7 @@ static int handle_call_token(struct ast_iax2_full_hdr *fh, struct iax_ies *ies, /* ----- Case 3 ----- */ } else { /* calltokens are not supported for this client, how do we respond? */ if (calltoken_required(sin, ies->username, subclass)) { - ast_log(LOG_ERROR, "Call rejected, CallToken Support required. If unexpected, resolve by placing address %s in the calltokenignore list or setting user %s requirecalltoken=no\n", ast_inet_ntoa(sin->sin_addr), ies->username); + ast_log(LOG_ERROR, "Call rejected, CallToken Support required. If unexpected, resolve by placing address %s in the calltokenignore list or setting user %s requirecalltoken=no\n", ast_inet_ntoa(sin->sin_addr), S_OR(ies->username, "guest")); goto reject; } return 0; /* calltoken is not required for this addr, so permit it. */