]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
CID: 1215198 Fix an assignment so that the variable only handles malloc'd data.
authorWilliam King <william.king@quentustech.com>
Wed, 21 May 2014 23:28:03 +0000 (16:28 -0700)
committerWilliam King <william.king@quentustech.com>
Wed, 21 May 2014 23:28:03 +0000 (16:28 -0700)
src/mod/applications/mod_hash/mod_hash.c

index 0a2df94bcaff9ae08a8e20131c37504082f88b75..a6f515263dfb6034dbd02fdab5a83652bcd23882 100644 (file)
@@ -599,7 +599,7 @@ SWITCH_STANDARD_API(hash_dump_function)
                argc = switch_separate_string(mydata, ' ', argv, (sizeof(argv) / sizeof(argv[0])));
                cmd = argv[0];
        } else {
-               realmvalue = "test";
+               realmvalue = switch_mprintf("test");
                realm = 0;
                stream->write_function(stream, "Usage: "HASH_DUMP_SYNTAX"\n");
                goto done;