help-gnutls
[Top][All Lists]
Advanced

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

Re: [Help-gnutls] gnutls-srpcrypt creates an empty tpasswd.


From: Nikos Mavroyanopoulos
Subject: Re: [Help-gnutls] gnutls-srpcrypt creates an empty tpasswd.
Date: Mon, 9 Jun 2003 12:18:30 +0300
User-agent: Mutt/1.5.4i

On Mon, Jun 09, 2003 at 05:12:02PM +0900, Hiroshi Hayakawa wrote:

> Hi all,

> After installing all stuffs under /usr/local as the default,
> I used gnutls-srpcrypt to generate tpasswd.conf and tpasswd.
> >gnutls-srpcrypt --passwd ./tpasswd --passwd-conf ./tpasswd.conf -u test
> Enter passwd: (I entered a string here.)
> Segmentation fault
I've just identified the problem. A patch is below:

Index: gnutls/src/crypt.c
diff -u gnutls/src/crypt.c:2.21 gnutls/src/crypt.c:2.21.2.1
--- gnutls/src/crypt.c:2.21     Sun Dec  1 20:50:10 2002
+++ gnutls/src/crypt.c  Mon Jun  9 11:10:11 2003
@@ -494,7 +494,6 @@
                if (put==0) {
                        fprintf(fd, "%s:%s:%u\n", username, cr, iindex);
                }
-               free(cr);

                fclose(fd);
                fclose(fd2);


> Thanks,
> Hiro

-- 
Nikos Mavroyanopoulos




reply via email to

[Prev in Thread] Current Thread [Next in Thread]