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 fad117f49..9e51bf2d4 100644
--- a/apps/app_directory.c
+++ b/apps/app_directory.c
@@ -740,7 +740,7 @@ static int directory_exec(struct ast_channel *chan, void *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);