diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-12-29 21:28:27 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-12-29 21:28:27 +0000 |
commit | 1e600169b342c0da7d4054827af4517e93def902 (patch) | |
tree | 5b610f13d26fa02199adddc7127fe63c9e81ea09 /usr.bin/cvs | |
parent | 3b42b380f3732ce7c40a12102ceb9991b671a869 (diff) |
we were wrongly decrementing cvs_mtskt_depth when handling
a '-' MT response.
this caused checkout and update to fail remotely.
caught by xfree().
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/resp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/resp.c b/usr.bin/cvs/resp.c index c1d1735e780..98aac46d694 100644 --- a/usr.bin/cvs/resp.c +++ b/usr.bin/cvs/resp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resp.c,v 1.65 2005/12/20 18:17:01 xsa Exp $ */ +/* $OpenBSD: resp.c,v 1.66 2005/12/29 21:28:26 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -254,7 +254,7 @@ cvs_resp_m(struct cvsroot *root, int type, char *line) cvs_log(LP_ERR, "mismatch in MT scope stack"); return (-1); } - xfree(cvs_mt_stack[cvs_mtstk_depth--]); + xfree(cvs_mt_stack[--cvs_mtstk_depth]); } else { if (strcmp(line, "newline") == 0) putc('\n', stdout); |