summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2009-06-30 18:14:23 (GMT)
committer Nokis Mavrogiannopoulos <nmav@gnutls.org>2009-06-30 18:14:23 (GMT)
commit377a9000b154b16c4fb6dd2fab0b995866b10795 (patch)
treee15299801a07600e3813c959e4bb5b52db531b68
parenta601e7d3b101f1594fcceab75d053dda0d4e98da (diff)
set srp username to empty string. Solves http://issues.outoforder.cc/view.php?id=92
-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)