[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#825697: cvsps: crashes on missing password



Package: cvsps
Version: 2.1-7
Tags: patch

Hi,

cvsps crashes whenever it can't get a password. Attached patch
prevents the crash  by defaulting to an empty password.

Cheers,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net
Index: cvsps-2.1/cvs_direct.c
===================================================================
--- cvsps-2.1.orig/cvs_direct.c
+++ cvsps-2.1/cvs_direct.c
@@ -180,7 +180,7 @@ static CvsServerCtx * open_ctx_pserver(C
     char * p = root, *tok, *tok2;
     char user[BUFSIZ];
     char server[BUFSIZ];
-    char pass[BUFSIZ];
+    char pass[BUFSIZ] = "\0";
     char port[8];
 
     strcpy(root, p_root);

Reply to: