diff options
Diffstat (limited to 'lib/auth/psk_passwd.c')
-rw-r--r-- | lib/auth/psk_passwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/auth/psk_passwd.c b/lib/auth/psk_passwd.c index a0427914f9..7384703bc7 100644 --- a/lib/auth/psk_passwd.c +++ b/lib/auth/psk_passwd.c @@ -203,7 +203,7 @@ _gnutls_psk_pwd_find_entry(gnutls_session_t session, /* Open the selected password file. */ - fd = fopen(cred->password_file, "r"); + fd = fopen(cred->password_file, "re"); if (fd == NULL) { gnutls_assert(); return GNUTLS_E_SRP_PWD_ERROR; |