Issue 8761, reported by and patch suggestion from ssokol.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@50098
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
struct ast_variable *tmp;
tmp = var;
while (tmp) {
- if (!strcasecmp(tmp->name, "password")) {
+ if (!strcasecmp(tmp->name, "password") || !strcasecmp(tmp->name, "secret")) {
ast_copy_string(retval->password, tmp->value, sizeof(retval->password));
} else if (!strcasecmp(tmp->name, "uniqueid")) {
ast_copy_string(retval->uniqueid, tmp->value, sizeof(retval->uniqueid));