Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
{
int ret;
- ZERO_STRUCTP(h);
+ *h = (struct Salt) {};
h->type = s->type;
ret = smb_krb5_copy_data_contents(&h->salt, s->salt.data, s->salt.length);
{
int rc;
- ZERO_STRUCTP(h);
+ *h = (struct Key) {};
h->key.keytype = s->key.keytype;
rc = smb_krb5_copy_data_contents(&h->key.keyvalue,
{
int ret, i;
- ZERO_STRUCTP(h);
+ *h = (struct Keys) {};
if (s->val != NULL) {
h->val = malloc(s->len * sizeof(Key));
{
int ret;
- ZERO_STRUCTP(h);
+ *h = (struct Event) {};
if (s->principal != NULL) {
ret = krb5_copy_principal(context,
unsigned int i;
int rc;
- ZERO_STRUCTP(h);
+ *h = (hdb_entry) {};
rc = krb5_copy_principal(context,
s->principal,