diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-01-29 11:55:31 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-01-29 11:55:31 +0000 |
commit | 0cb19a3dfe9a96dfc858abf939847d1084b74b95 (patch) | |
tree | 110bf80930ee2fb7ffe1dbafa5349e51bf25a82e /usr.bin/cvs/client.c | |
parent | 846b4077f0ba2fa296571693415eb8dc1548bfee (diff) |
Properly check if an argument has been supplied for "Removed"
> Diff from Igor Zinovik
Diffstat (limited to 'usr.bin/cvs/client.c')
-rw-r--r-- | usr.bin/cvs/client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c index 484bd8b9f8f..280557b11b4 100644 --- a/usr.bin/cvs/client.c +++ b/usr.bin/cvs/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.90 2008/01/21 16:36:46 tobias Exp $ */ +/* $OpenBSD: client.c,v 1.91 2008/01/29 11:55:30 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -829,6 +829,9 @@ cvs_client_removed(char *data) CVSENTRIES *entlist; char *rpath, *filename, fpath[MAXPATHLEN]; + if (data == NULL) + fatal("Missing argument for Removed"); + rpath = cvs_remote_input(); if ((filename = strrchr(rpath, '/')) == NULL) fatal("bad rpath in cvs_client_removed: %s", rpath); |