Signed-off-by: Pavel Filipenský <pfilipen@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
{
bool ret;
void *protection = secrets_fetch(protect_ids_keystr(domain), NULL);
-
+
if (protection) {
SAFE_FREE(protection);
ret = secrets_delete_entry(protect_ids_keystr(domain));
}
} else {
SIVAL(&sec_channel_bytes, 0, secure_channel_type);
- ret = secrets_store(machine_sec_channel_type_keystr(domain),
+ ret = secrets_store(machine_sec_channel_type_keystr(domain),
&sec_channel_bytes, sizeof(sec_channel_bytes));
if (!ret) {
TALLOC_FREE(frame);