summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/root.c')
-rw-r--r--usr.bin/cvs/root.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/cvs/root.c b/usr.bin/cvs/root.c
index 255663448dd..fcc2594e686 100644
--- a/usr.bin/cvs/root.c
+++ b/usr.bin/cvs/root.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: root.c,v 1.13 2004/12/07 17:10:56 tedu Exp $ */
+/* $OpenBSD: root.c,v 1.14 2004/12/28 21:58:42 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -141,6 +141,11 @@ cvsroot_parse(const char *str)
break;
}
}
+ if (i == CVS_NBMETHODS) {
+ cvs_log(LP_ERR, "unknown method `%s'", sp);
+ cvsroot_free(root);
+ return (NULL);
+ }
}
/* find the start of the actual path */