]> andersk Git - gssapi-openssh.git/commitdiff
fix bug I introduced on recent merge where I stopped getting the string
authorjbasney <jbasney>
Wed, 20 Mar 2002 17:01:26 +0000 (17:01 +0000)
committerjbasney <jbasney>
Wed, 20 Mar 2002 17:01:26 +0000 (17:01 +0000)
length from packet_get_string(); the string length is important!
I put it back.

openssh/gss-serv.c

index bc48b9c6be924f7bf9725f9f749a6c9734b3b255..749c031e32d054b1cf73ef7baafd91130db2aeff 100644 (file)
@@ -460,6 +460,7 @@ userauth_gssapi(Authctxt *authctxt)
        gss_OID_set     supported;
        int             present;
        OM_uint32       ms;
+       u_int           len;
        
        if (!authctxt->valid || authctxt->user == NULL)
                return 0;
@@ -473,7 +474,8 @@ userauth_gssapi(Authctxt *authctxt)
        do {
                if (oid.elements)
                        xfree(oid.elements);
-               oid.elements = packet_get_string(NULL);
+               oid.elements = packet_get_string(&len);
+               oid.length = len;
                gss_test_oid_set_member(&ms, &oid, supported, &present);
                mechs--;
        } while (mechs>0 && !present);
This page took 0.464562 seconds and 5 git commands to generate.