Tiny patch from Laurence Withers <l@lwithers.me.uk>, see
<http://lists.gnu.org/archive/html/gnutls-devel/2008-04/msg00002.html>.
/*
- * Copyright (C) 2005, 2007 Free Software Foundation
+ * Copyright (C) 2005, 2007, 2008 Free Software Foundation
*
* Author: Nikos Mavrogiannopoulos
*
if (strncmp (username, line, MAX (i, len)) == 0)
{
ret = pwd_put_values (psk, line);
+ fclose (fd);
if (ret < 0)
{
gnutls_assert ();
return 0;
}
}
+ fclose (fd);
/* user was not found. Fake him.
* the last index found and randomize the entry.