scd: Don't let the "undefined" app cause a conflict error.

* scd/app.c (check_conflict): Ignore "undefined".

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2019-02-21 08:40:59 +01:00
parent d7a54ca461
commit 5ecc7a0260
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,9 @@ check_conflict (app_t app, const char *name)
if (!app || !name || (app->apptype && !ascii_strcasecmp (app->apptype, name)))
return 0;
if (app->apptype && !strcmp (app->apptype, "UNDEFINED"))
return 0;
log_info ("application '%s' in use - can't switch\n",
app->apptype? app->apptype : "<null>");