projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
771f699
)
properly handle the return of the rowcount from ast_update_realtime (bug #4452)
author
Russell Bryant
<russell@russellbryant.com>
Mon, 11 Jul 2005 23:13:11 +0000
(23:13 +0000)
committer
Russell Bryant
<russell@russellbryant.com>
Mon, 11 Jul 2005 23:13:11 +0000
(23:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6089
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
apps/app_voicemail.c
patch
|
blob
|
history
diff --git
a/apps/app_voicemail.c
b/apps/app_voicemail.c
index
c65d504
..
f86346a
100755
(executable)
--- a/
apps/app_voicemail.c
+++ b/
apps/app_voicemail.c
@@
-408,8
+408,12
@@
static int change_password_realtime(struct ast_vm_user *vmu, const char *passwor
int res;
if (!ast_strlen_zero(vmu->uniqueid)) {
res = ast_update_realtime("voicemail", "uniqueid", vmu->uniqueid, "password", password, NULL);
- if (!res)
+ if (res > 0) {
ast_copy_string(vmu->password, password, sizeof(vmu->password));
+ res = 0;
+ } else if (!res) {
+ res = -1;
+ }
return res;
}
return -1;