]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fixed incorrect pointer copy to structure copy in revision 333339
authorMatthew Jordan <mjordan@digium.com>
Fri, 26 Aug 2011 14:36:25 +0000 (14:36 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 26 Aug 2011 14:36:25 +0000 (14:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@333354 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index ef8a8b5980e8fb132d93a2e86e19484e9742450b..64d81511c266fdc942a41076c7927cfba92555f5 100644 (file)
@@ -1454,7 +1454,7 @@ static struct ast_vm_user *find_user(struct ast_vm_user *ivm, const char *contex
        if (cur) {
                /* Make a copy, so that on a reload, we have no race */
                if ((vmu = (ivm ? ivm : ast_malloc(sizeof(*vmu))))) {
-                       vmu = cur;
+                       *vmu = *cur;
                        if (!ivm) {
                                vmu->emailbody = ast_strdup(cur->emailbody);
                                vmu->emailsubject = ast_strdup(cur->emailsubject);