]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3986 --resolve regression from 8f8af383654dcb3caf7cb483c073e63d8e2a3a7d
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Mar 2012 16:18:28 +0000 (10:18 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Mar 2012 16:18:34 +0000 (10:18 -0600)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 6e1d895074dac0bcde11cab5dba924a3c1ede802..d6c06b6aaf7a6dc9bc2ea47c2484e8060afd998c 100644 (file)
@@ -2500,7 +2500,9 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
                }
 
                if (zstr(uuid)) {
-                       stream.write_function(&stream, "<state>terminated</state>\n");
+                       if (stream.write_function) {
+                               stream.write_function(&stream, "<state>terminated</state>\n");
+                       }
                } else {
                        if (!zstr(answer_state)) {
                                astate = answer_state;