]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix segfault?
authorMichael Jerris <mike@jerris.com>
Fri, 20 Oct 2006 05:45:52 +0000 (05:45 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 20 Oct 2006 05:45:52 +0000 (05:45 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3114 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index 24e9638f56ccfd88814091969898b1427ff6b990..6c39a07a97168ca54f07af3f384e47b9096b6981 100644 (file)
@@ -855,6 +855,10 @@ char *encode_name(char *s)
        char *at, *resource;
        char *user;
 
+       if (!s) {
+               return NULL;
+       }
+
        if (!strchr(s, '/')) {
                return NULL;
        }