diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2005-06-07 16:22:20 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2005-06-07 16:22:20 +0000 |
commit | 13b3440740a23056bf2bf59c2d7840765b7ab0cc (patch) | |
tree | 44f453c8038a93fce8f322100126bd5a019f46d4 /usr.bin/cvs | |
parent | 574a7a8c2258bdf9ece2fbd3c0302b19391a34e8 (diff) |
don't forget to call cvs_disconnect() at the end
of a remote connection.
ok xsa@
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/cmd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/cmd.c b/usr.bin/cvs/cmd.c index 7236fbc4476..4b94978ab8b 100644 --- a/usr.bin/cvs/cmd.c +++ b/usr.bin/cvs/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.23 2005/06/02 20:12:06 joris Exp $ */ +/* $OpenBSD: cmd.c,v 1.24 2005/06/07 16:22:19 joris Exp $ */ /* * Copyright (c) 2005 Joris Vink <joris@openbsd.org> * All rights reserved. @@ -229,5 +229,8 @@ cvs_startcmd(struct cvs_cmd *cmd, int argc, char **argv) if (cmd->cmd_cleanup != NULL) (*cmd->cmd_cleanup)(); + if (root->cr_method != CVS_METHOD_LOCAL) + cvs_disconnect(root); + return (0); } |