]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
reset handler field on filehandles so it gets cleared on reuse reported by bevenky...
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 16 Aug 2011 20:50:21 +0000 (15:50 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 16 Aug 2011 20:50:29 +0000 (15:50 -0500)
src/switch_core_file.c

index 58b63bdc4b3f5046138d61085580fbcc553e723c..28f1172ff8acd26c80287201ba79466527ce937c 100644 (file)
@@ -135,10 +135,14 @@ SWITCH_DECLARE(switch_status_t) switch_core_perform_file_open(const char *file,
                switch_uuid_format(uuid_str, &uuid);
 
                fh->spool_path = switch_core_sprintf(fh->memory_pool, "%s%s%s.%s", spool_path, SWITCH_PATH_SEPARATOR, uuid_str, ext);
+       } else {
+               fh->spool_path = NULL;
        }
 
        if (rhs) {
                fh->handler = switch_core_strdup(fh->memory_pool, rhs);
+       } else {
+               fh->handler = NULL;
        }
 
        if (channels) {