}
}
- if (!asn1_has_error(asn1)) ret = asn1->ofs;
+ if (!asn1_has_error(asn1)) {
+ ret = asn1_current_ofs(asn1);
+ }
err:
goto err;
}
- ret = asn1->ofs;
+ ret = asn1_current_ofs(asn1);
err:
err:
if (asn1_has_error(data)) {
- DEBUG(1,("Failed to build negTokenInit at offset %d\n", (int)data->ofs));
+ DEBUG(1, ("Failed to build negTokenInit at offset %d\n",
+ (int)asn1_current_ofs(data)));
}
asn1_free(data);
err:
if (asn1_has_error(data)) {
- DEBUG(1,("Failed to build krb5 wrapper at offset %d\n", (int)data->ofs));
+ DEBUG(1, ("Failed to build krb5 wrapper at offset %d\n",
+ (int)asn1_current_ofs(data)));
}
asn1_free(data);
err:
if (asn1_has_error(data)) {
- DEBUG(3,("spnego_parse_auth_response failed at %d\n", (int)data->ofs));
+ DEBUG(3, ("spnego_parse_auth_response failed at %d\n",
+ (int)asn1_current_ofs(data)));
asn1_free(data);
data_blob_free(auth);
return false;
err:
- DEBUG(1,("Failed to build krb5 wrapper at offset %d\n", (int)data->ofs));
+ DEBUG(1, ("Failed to build krb5 wrapper at offset %d\n",
+ (int)asn1_current_ofs(data)));
asn1_free(data);
return ret;
}