[gnutls-dev] Re: [Help-gnutls] gnutls-srpcrypt creates an empty tpasswd.
Nikos Mavroyanopoulos
nmav@gnutls.org
Mon Jun 9 11:16:03 2003
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