]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_voicemail: Fix vm_prefs profile lock (MODAPP-417)
authorMarc Olivier Chouinard <mochouinard@mochouinard-laptop.(none)>
Thu, 15 Apr 2010 01:36:41 +0000 (21:36 -0400)
committerMarc Olivier Chouinard <mochouinard@mochouinard-laptop.(none)>
Thu, 15 Apr 2010 01:36:41 +0000 (21:36 -0400)
src/mod/applications/mod_voicemail/mod_voicemail.c

index 4bdae40975bf12e89047e246c65f52b119bd9b72..d01205feff3087cc8ad61663da212dcb8d0063fc 100644 (file)
@@ -3353,7 +3353,7 @@ SWITCH_STANDARD_API(prefs_api_function)
                        stream->write_function(stream, "-ERR No such profile\n");
                        goto done;
                }
-               if (!(profile = get_profile("default"))) {
+               if (!profile && !(profile = get_profile("default"))) {
                        stream->write_function(stream, "-ERR profile 'default' doesn't exist\n");
                        goto done;
                }