Summary: | ASTERISK-08687: Zero length string papameters while logging in build_user function | ||
Reporter: | Alexander Maglyovany (st41ker) | Labels: | |
Date Opened: | 2007-01-30 06:42:59.000-0600 | Date Closed: | 2008-01-15 16:29:21.000-0600 |
Priority: | Trivial | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | if (peer) { /* Already in the list, remove it and it will be added back (or FREE'd) */ found++; if (!(peer->objflags & ASTOBJ_FLAG_MARKED)) firstpass = 0; } else { if (!(peer = ast_calloc(1, sizeof(*peer)))) return NULL; if (realtime) { rpeerobjs++; if (option_debug > 2) ast_log(LOG_DEBUG,"-REALTIME- peer built. Name: %s. Peer objects: %d\n", peer->name, rpeerobjs); } else speerobjs++; ASTOBJ_INIT(peer); } ************************************* In ast_log - peer->name will allways be a zerolength string May be it should be changed to : ast_log(LOG_DEBUG,"-REALTIME- peer built. Name: %s. Peer objects: %d\n", name, rpeerobjs); | ||
Comments: | By: Joshua C. Colp (jcolp) 2007-01-30 09:44:21.000-0600 Fixed in trunk as of revision 52860. Thanks! By: Digium Subversion (svnbot) 2008-01-15 16:29:21.000-0600 Repository: asterisk Revision: 8943 U team/rizzo/base/UPGRADE.txt U team/rizzo/base/apps/app_meetme.c U team/rizzo/base/channel.c U team/rizzo/base/channels/chan_oss.c U team/rizzo/base/channels/chan_sip.c U team/rizzo/base/channels/chan_zap.c U team/rizzo/base/configs/sip.conf.sample U team/rizzo/base/funcs/func_md5.c U team/rizzo/base/include/asterisk/channel.h ------------------------------------------------------------------------ r8943 | rizzo | 2008-01-15 16:29:21 -0600 (Tue, 15 Jan 2008) | 3 lines synchronize with trunk ASTERISK-8687 ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=8943 |