]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
only need realm on auth
authorMichael Jerris <mike@jerris.com>
Wed, 25 Oct 2006 17:00:57 +0000 (17:00 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 25 Oct 2006 17:00:57 +0000 (17:00 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3200 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index 5a63f49cc8560cfb2b479b1d402658f8d3577da8..a26fd8279670e3d61eecb58ff795763a99a043e8 100644 (file)
@@ -3927,13 +3927,14 @@ static void sip_r_register(int status,
                                }
                        }
                }
-       }
 
-       if (!(scheme && realm)) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No scheme and realm!\n");
-               return;
+               if (!(scheme && realm)) {
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No scheme and realm!\n");
+                       return;
+               }
        }
 
+
        if (sofia_private) {
                if (sofia_private->oreg) {
                        oreg = sofia_private->oreg;