From dc0bfa2da445f6ae5111cca382fd78914538667b Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Tue, 1 Mar 2005 04:47:33 +0000 Subject: [PATCH] Fix seg in authenticate (bug #3686) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5109 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_voicemail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 090ad25..021b59a 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -4452,7 +4452,7 @@ static int vm_authenticate(struct ast_channel *chan, char *mailbox, int mailbox_ ast_play_and_wait(chan, "vm-goodbye"); return -1; } - if (!skipuser) { + if (vmu && !skipuser) { memcpy(res_vmu, vmu, sizeof(struct ast_vm_user)); } return 0; -- 1.7.9.5