]>
Commit | Line | Data |
---|---|---|
3a862a5e AM |
1 | # |
2 | # Do a basic sanity check on the method in the CVSROOT - don't crash | |
3 | # if one is not specified! Bug#274020 | |
4 | # | |
5 | # Patch from Steve McIntyre <steve@einval.com> | |
6 | diff -ruN cvs-1.12.13-old/src/root.c cvs-1.12.13/src/root.c | |
7 | --- cvs-1.12.13-old/src/root.c 2005-09-25 08:38:29.000000000 +0800 | |
8 | +++ cvs-1.12.13/src/root.c 2006-02-26 17:48:32.000000000 +0800 | |
9 | @@ -535,6 +535,12 @@ | |
10 | method = ""; | |
11 | #endif /* defined (CLIENT_SUPPORT) || defined (SERVER_SUPPORT) */ | |
12 | ||
13 | + if (NULL == method) | |
14 | + { | |
15 | + error (0, 0, "Missing method in CVSROOT."); | |
16 | + goto error_exit; | |
17 | + } | |
18 | + | |
19 | /* Now we have an access method -- see if it's valid. */ | |
20 | ||
21 | if (!strcasecmp (method, "local")) |