[asterisk-commits] simon.perreault: branch group/v6 r86294 - /team/group/v6/trunk/channels/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 18 09:13:31 CDT 2007
Author: simon.perreault
Date: Thu Oct 18 09:13:31 2007
New Revision: 86294
URL: http://svn.digium.com/view/asterisk?view=rev&rev=86294
Log:
Fix a potential bug in sip_register(). host is never null since it is statically
allocated. What we really want to do is check for hostname. Besides, the code
looked suspicious.
Modified:
team/group/v6/trunk/channels/chan_sip.c
Modified: team/group/v6/trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/group/v6/trunk/channels/chan_sip.c?view=diff&rev=86294&r1=86293&r2=86294
==============================================================================
--- team/group/v6/trunk/channels/chan_sip.c (original)
+++ team/group/v6/trunk/channels/chan_sip.c Thu Oct 18 09:13:31 2007
@@ -5428,7 +5428,7 @@
ast_string_field_set(reg, callback, callback);
if (!ast_strlen_zero(username))
ast_string_field_set(reg, username, username);
- if (host)
+ if (hostname)
ast_string_field_set(reg, hostname, hostname);
if (authuser)
ast_string_field_set(reg, authuser, authuser);
More information about the asterisk-commits
mailing list