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
This commit is contained in:
parent
88a0afc78f
commit
c6bd0351b8
@ -72,6 +72,10 @@ typedef KLStatus (*KLCacheHasValidTickets_type)(
|
||||
char **);
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_RES_NINIT)
|
||||
#include <resolv.h>
|
||||
#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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user