Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 155782
Collapse All | Expand All

(-)mod_auth_kerb-5.0-rc6/spnegokrb5/der_get.c (-1 / +1 lines)
Lines 151-157 der_get_oid (const unsigned char *p, siz Link Here
151
    if (len < 1)
151
    if (len < 1)
152
	return ASN1_OVERRUN;
152
	return ASN1_OVERRUN;
153
153
154
    data->components = malloc(len * sizeof(*data->components));
154
    data->components = malloc((len + 1) * sizeof(*data->components));
155
    if (data->components == NULL && len != 0)
155
    if (data->components == NULL && len != 0)
156
	return ENOMEM;
156
	return ENOMEM;
157
    data->components[0] = (*p) / 40;
157
    data->components[0] = (*p) / 40;

Return to bug 155782