]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODENDP-297
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 9 Mar 2010 16:36:40 +0000 (16:36 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 9 Mar 2010 16:36:40 +0000 (16:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16953 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_stun.c

index 637be50e91ee7df77c92820160221dd223ce457b..89e42e0b17df1ac6ae52408965ead639bb5286be 100644 (file)
@@ -459,7 +459,7 @@ SWITCH_DECLARE(switch_status_t) switch_stun_lookup(char **ip,
 
        switch_assert(err);
 
-       if (!strcmp(*err, "funny")) {
+       if (*err && !strcmp(*err, "funny")) {
                funny = 1;
        }