aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/app_directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c
index 34001ad51..deca03922 100644
--- a/apps/app_directory.c
+++ b/apps/app_directory.c
@@ -808,7 +808,7 @@ static int directory_exec(struct ast_channel *chan, const char *data)
"dir-firstlast", AST_DIGIT_ANY);
}
if (!res) {
- ast_stream_and_wait(chan, "dir-usingkeypad", AST_DIGIT_ANY);
+ res = ast_stream_and_wait(chan, "dir-usingkeypad", AST_DIGIT_ANY);
}
}
ast_stopstream(chan);