[2059] in Kerberos-V5-bugs
gss_import_name...
daemon@ATHENA.MIT.EDU (Dave Blob)
Fri Jun 28 17:18:22 1996
Date: Fri, 28 Jun 1996 16:18:01 -0500 (CDT)
From: Dave Blob <blob@syl.dl.nec.com>
To: krb5-bugs@MIT.EDU
Reply-To: blob@syl.dl.nec.com (David Blob)
Hey all...
I have a problem with gss_import_name, hoping you can tell me if I
missed something, or if there's a bug in kerberos...
In RFC 1961 (GSS-API w/Socks5), they say:
The client should call gss_import_name to obtain an internal
representation of the server name. For maximal portability
the default name_type GSS_C_NULL_OID should be used to specify
the default name space, and the input name_string should
treated by the client's code as an opaque name-space specific
input.
I've been doing this for quite a while. Assumed there was no problem
with it. Breaks w/ beta6 though. I tracked down the problem to:
gss_import_name :
major_status = generic_gss_copy_oid(minor_status, input_name_type,
&union_name->name_type);
Which of course tries to allocate & copy the name. Problem is the name
is NULL, so on the copy, I get a seg fault. Is this a problem in beta6,
or an oversight in the RFC? If that's the case, what should go there?
Thanks,
Dave