&our_cksum)) {
krb5_free_tkt_authent(authdat);
xfree(our_cksum.contents);
- xfree(scratch->data);
+ krb5_free_data(scratch);
cleanup_apreq();
return retval;
}
our_cksum.length)) {
krb5_free_tkt_authent(authdat);
xfree(our_cksum.contents);
- xfree(scratch->data);
+ krb5_free_data(scratch);
cleanup_apreq();
return KRB5KRB_AP_ERR_BAD_INTEGRITY; /* XXX wrong code? */
}
- xfree(scratch->data);
+ krb5_free_data(scratch);
xfree(our_cksum.contents);
krb5_free_tkt_authent(authdat);
(swbits[(val >> 16) & 0xff] << 8) | swbits[(val >> 24) & 0xff];
tmp = int2strb(useval, 32); /* XXX hardcode 32 bits */
-
+ /* tmp points to static buffer */
+
pe = strb2bitstr(tmp, 32, PE_CLASS_UNIV, PE_PRIM_BITS);
if (!pe)
*error = ENOMEM;
else
*error = 0;
+
return(pe);
}
result = strb2int(tmp, length);
+ free(tmp);
+
/* need to reverse bits in result, so that 0 is msb */
result = (swbits[(result & 0xff)] << 24) |
(swbits[(result >> 8) & 0xff] << 16) |