From c6bd0351b86d1ca65e13976c739d64db02450aed Mon Sep 17 00:00:00 2001 From: "dveditz%cruzio.com" Date: Tue, 2 Feb 2010 10:04:51 +0000 Subject: [PATCH] bug 494969 GSSAPI auth may fail if resolv.conf changes. patch by kaie, r=cbiesinger, a=dveditz git-svn-id: svn://10.0.0.236/trunk@259567 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/auth/nsAuthGSSAPI.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/extensions/auth/nsAuthGSSAPI.cpp b/mozilla/extensions/auth/nsAuthGSSAPI.cpp index 07b6fe593d2..7acbd7e76ad 100644 --- a/mozilla/extensions/auth/nsAuthGSSAPI.cpp +++ b/mozilla/extensions/auth/nsAuthGSSAPI.cpp @@ -72,6 +72,10 @@ typedef KLStatus (*KLCacheHasValidTickets_type)( char **); #endif +#if defined(HAVE_RES_NINIT) +#include +#endif + //----------------------------------------------------------------------------- // We define GSS_C_NT_HOSTBASED_SERVICE explicitly since it may be referenced @@ -416,6 +420,9 @@ nsAuthGSSAPI::GetNextToken(const void *inToken, input_token.value = (void *)mServiceName.get(); input_token.length = mServiceName.Length() + 1; +#if defined(HAVE_RES_NINIT) + res_ninit(&_res); +#endif major_status = gss_import_name_ptr(&minor_status, &input_token, &gss_c_nt_hostbased_service,