[asterisk-addons-commits] file: branch 1.4 r385 - /branches/1.4/asterisk-ooh323c/src/chan_h323.c

asterisk-addons-commits at lists.digium.com asterisk-addons-commits at lists.digium.com
Mon Jun 4 11:50:39 MST 2007


Author: file
Date: Mon Jun  4 13:50:38 2007
New Revision: 385

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=385
Log:
Don't try to access a variable that may be NULL, mmmk? (issue #9829 reported by xrg)

Modified:
    branches/1.4/asterisk-ooh323c/src/chan_h323.c

Modified: branches/1.4/asterisk-ooh323c/src/chan_h323.c
URL: http://svn.digium.com/view/asterisk-addons/branches/1.4/asterisk-ooh323c/src/chan_h323.c?view=diff&rev=385&r1=384&r2=385
==============================================================================
--- branches/1.4/asterisk-ooh323c/src/chan_h323.c (original)
+++ branches/1.4/asterisk-ooh323c/src/chan_h323.c Mon Jun  4 13:50:38 2007
@@ -2056,10 +2056,11 @@
    {
       if(strcasecmp(cat, "general")) 
       {
-         int friend_type = strcasecmp(utype, "friend");
+         int friend_type = 0;
          utype = ast_variable_retrieve(cfg, cat, "type");
          if(utype)
          {
+		 friend_type = strcasecmp(utype, "friend");
             if(!strcmp(utype, "user") || 0 == friend_type)
             {
                user = build_user(cat, ast_variable_browse(cfg, cat));



More information about the asterisk-addons-commits mailing list