From d07dc84dcdef333265ea6a349321507cda1dc7cb Mon Sep 17 00:00:00 2001 From: Nokis Mavrogiannopoulos Date: Tue, 30 Jun 2009 18:14:23 +0000 Subject: set srp username to empty string. Solves http://issues.outoforder.cc/view.php?id=92 --- src/gnutls_hooks.c | 4 ++-- 1 file 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) (ctxt->session))); #ifdef ENABLE_SRP - apr_table_setn(env, "SSL_SRP_USER", - gnutls_srp_server_get_username(ctxt->session)); + tmp = gnutls_srp_server_get_username(ctxt->session); + apr_table_setn(env, "SSL_SRP_USER", (tmp!=NULL)?tmp:""); #endif if (apr_table_get(env, "SSL_CLIENT_VERIFY") == NULL) -- cgit