Skip to content

Commit

Permalink
Unsupported backend is an error
Browse files Browse the repository at this point in the history
- reverts basically 781df88 and
190a92d

- not an error causes possibility to load a trust from .conf empty when
there is no valid backend name which leads to the situation where
everything on the system is untrusted

Signed-off-by: Radovan Sroka <[email protected]>
  • Loading branch information
radosroka committed Jun 14, 2023
1 parent c35ad41 commit eab38b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/library/backend-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ static int backend_push(const char *name)
}

if (index == -1) {
msg(LOG_INFO, "%s backend not supported, skipping!", name);
return 0;
msg(LOG_ERR, "%s backend not supported, aborting!", name);
return 1;
} else {
backend_entry *tmp = (backend_entry *)
malloc(sizeof(backend_entry));

if (!tmp) {
msg(LOG_ERR, "cannot allocate %s backend", name);
return 1;
return 2;
}

tmp->backend = compiled[index];
Expand Down

0 comments on commit eab38b3

Please sign in to comment.