mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
CID: 1215198 Fix an assignment so that the variable only handles malloc'd data.
This commit is contained in:
@@ -599,7 +599,7 @@ SWITCH_STANDARD_API(hash_dump_function)
|
|||||||
argc = switch_separate_string(mydata, ' ', argv, (sizeof(argv) / sizeof(argv[0])));
|
argc = switch_separate_string(mydata, ' ', argv, (sizeof(argv) / sizeof(argv[0])));
|
||||||
cmd = argv[0];
|
cmd = argv[0];
|
||||||
} else {
|
} else {
|
||||||
realmvalue = "test";
|
realmvalue = switch_mprintf("test");
|
||||||
realm = 0;
|
realm = 0;
|
||||||
stream->write_function(stream, "Usage: "HASH_DUMP_SYNTAX"\n");
|
stream->write_function(stream, "Usage: "HASH_DUMP_SYNTAX"\n");
|
||||||
goto done;
|
goto done;
|
||||||
|
Reference in New Issue
Block a user