[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sock_to_principal bugfix
"Jacques A. Vidrine" <email@example.com> writes:
> In krb5_sock_to_principal, the resolver is used to determine
> an appropriate hostname to pass to krb5_sname_to_principal.
> This hostname needs to be copied before the call to
> krb5_sname_to_principal, because the latter may use the resolver
> itself, trashing our previous results before we are really done with
> them. I was bitten by this on *shudder* IRIX.
Thanks, I've applied your patch (with a minor change - hname can never
be NULL where you check since it was already sent to strchr).