Permalink
Browse files

Correct the return value when running grant/revoke command failed

Signed-off-by: Guangliang Zhao <gzhao@suse.com>
  • Loading branch information...
1 parent 62fb71b commit 8c41d856f216a3d9be1ca6c69bb1c12a6e075a87 @glzhao glzhao committed May 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main.c
View
@@ -667,7 +667,7 @@ static int do_command(cmd_request_t cmd)
log_info("grant failed!");
else if (cmd == BOOTHC_CMD_REVOKE)
log_info("revoke failed!");
- rv = 0;
+ rv = -1;
} else {
log_error("internal error!");
rv = -1;

0 comments on commit 8c41d85

Please sign in to comment.