mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@14515 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -737,6 +737,8 @@ static void conf_flush(int fd, struct ast_channel *chan)
|
|||||||
f = ast_read(chan);
|
f = ast_read(chan);
|
||||||
if (f)
|
if (f)
|
||||||
ast_frfree(f);
|
ast_frfree(f);
|
||||||
|
else /* channel was hung up or something else happened */
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -95,7 +95,7 @@ static int readfile_exec(struct ast_channel *chan, void *data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
returnvar = ast_read_textfile(file);
|
if ((returnvar = ast_read_textfile(file))) {
|
||||||
if (len > 0) {
|
if (len > 0) {
|
||||||
if (len < strlen(returnvar))
|
if (len < strlen(returnvar))
|
||||||
returnvar[len]='\0';
|
returnvar[len]='\0';
|
||||||
@@ -104,6 +104,7 @@ static int readfile_exec(struct ast_channel *chan, void *data)
|
|||||||
}
|
}
|
||||||
pbx_builtin_setvar_helper(chan, varname, returnvar);
|
pbx_builtin_setvar_helper(chan, varname, returnvar);
|
||||||
free(returnvar);
|
free(returnvar);
|
||||||
|
}
|
||||||
LOCAL_USER_REMOVE(u);
|
LOCAL_USER_REMOVE(u);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user