aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nokis Mavrogiannopoulos 2009-06-30 18:14:23 +0000
committerGravatar Nokis Mavrogiannopoulos 2009-06-30 18:14:23 +0000
commitd07dc84dcdef333265ea6a349321507cda1dc7cb (patch)
treee15299801a07600e3813c959e4bb5b52db531b68 /src
parent59a7ff53730ef1c7fb5e5d09665b429126fdde49 (diff)
set srp username to empty string. Solves http://issues.outoforder.cc/view.php?id=92
Diffstat (limited to 'src')
-rw-r--r--src/gnutls_hooks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gnutls_hooks.c b/src/gnutls_hooks.c
index 9ac17a0..82a9a99 100644
--- a/src/gnutls_hooks.c
+++ b/src/gnutls_hooks.c
@@ -750,8 +750,8 @@ int mgs_hook_fixups(request_rec * r)
750 (ctxt->session))); 750 (ctxt->session)));
751 751
752#ifdef ENABLE_SRP 752#ifdef ENABLE_SRP
753 apr_table_setn(env, "SSL_SRP_USER", 753 tmp = gnutls_srp_server_get_username(ctxt->session);
754 gnutls_srp_server_get_username(ctxt->session)); 754 apr_table_setn(env, "SSL_SRP_USER", (tmp!=NULL)?tmp:"");
755#endif 755#endif
756 756
757 if (apr_table_get(env, "SSL_CLIENT_VERIFY") == NULL) 757 if (apr_table_get(env, "SSL_CLIENT_VERIFY") == NULL)