]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make sure to use the correct length of the mohinterpret and mohsuggest
authorSean Bright <sean@malleable.com>
Tue, 2 Sep 2008 18:14:57 +0000 (18:14 +0000)
committerSean Bright <sean@malleable.com>
Tue, 2 Sep 2008 18:14:57 +0000 (18:14 +0000)
buffers when copying configuration values.

(closes issue #13336)
Reported by: decryptus_proformatique
Patches:
      chan_iax2_mohinterpret_mohsuggest_general_settings.patch uploaded by decryptus (license 555)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@140605 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index a7d350784b324c3c2025b75a7492f99cd74c3634..5d83f6280420e0450883836eea1bc6d31d727aa2 100644 (file)
@@ -10115,9 +10115,9 @@ static int set_config(char *config_file, int reload)
                } else if (!strcasecmp(v->name, "accountcode")) {
                        ast_copy_string(accountcode, v->value, sizeof(accountcode));
                } else if (!strcasecmp(v->name, "mohinterpret")) {
-                       ast_copy_string(mohinterpret, v->value, sizeof(user->mohinterpret));
+                       ast_copy_string(mohinterpret, v->value, sizeof(mohinterpret));
                } else if (!strcasecmp(v->name, "mohsuggest")) {
-                       ast_copy_string(mohsuggest, v->value, sizeof(user->mohsuggest));
+                       ast_copy_string(mohsuggest, v->value, sizeof(mohsuggest));
                } else if (!strcasecmp(v->name, "amaflags")) {
                        format = ast_cdr_amaflags2int(v->value);
                        if (format < 0) {