summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkeithp <keithp@kemper.freedesktop.org>2006-02-15 00:54:18 -0800
committerkeithp <keithp@kemper.freedesktop.org>2006-02-15 00:54:18 -0800
commit72eb6aa2d433ced0400a5165fc96f776438cd789 (patch)
tree9883e5f0efcaec1a7b4a50f4deb11fc59f604611
parente9daee3c4da6e8b30c91a05bdf1d1e985581a558 (diff)
Make argument decoding problems fatal errors
-rw-r--r--ssh-bleach.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-bleach.c b/ssh-bleach.c
index 4b3c3b3..00ea33f 100644
--- a/ssh-bleach.c
+++ b/ssh-bleach.c
@@ -61,7 +61,7 @@ char *get_quoted_arg (char *line)
int git_receive_pack (char *line) {
char *arg = get_quoted_arg (line);
if (! arg)
- return 0;
+ return -1;
if (verbose)
printf ("git-receive-pack '%s'\n", arg);
@@ -74,7 +74,7 @@ int git_receive_pack (char *line) {
int git_upload_pack (char *line) {
char *arg = get_quoted_arg (line);
if (! arg)
- return 0;
+ return -1;
if (verbose)
printf ("git-upload-pack '%s'\n", arg);