summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/server.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2008-05-06 10:37:31 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2008-05-06 10:37:31 +0000
commit96becb385389454caebf38ec3986e457c85fba34 (patch)
tree294e3587119dc6a4808e5f26017fc4d258a1f43e /usr.bin/cvs/server.c
parent29cd4d5870c6955ef22058920dbd89139602b9a0 (diff)
We have to check if server_argc is 1 instead of lesser than 0 to see if
an Argumentx directive has been sent to server without prior Argument. ok joris, xsa
Diffstat (limited to 'usr.bin/cvs/server.c')
-rw-r--r--usr.bin/cvs/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c
index 05a1d573be4..2c1bfa12d99 100644
--- a/usr.bin/cvs/server.c
+++ b/usr.bin/cvs/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.86 2008/04/24 19:13:56 tobias Exp $ */
+/* $OpenBSD: server.c,v 1.87 2008/05/06 10:37:30 tobias Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -480,7 +480,7 @@ cvs_server_argumentx(char *data)
int idx;
size_t len;
- if (server_argc < 0)
+ if (server_argc == 1)
fatal("Protocol Error: ArgumentX without previous argument");
idx = server_argc - 1;