mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
scd:p15: Fix logic for appending product name to MANUFACTURER.
* scd/app-p15.c (do_getattr): Append product name to MANUFACTURER if manufacturer_id does not already contain a bracket and if we have a product name.
This commit is contained in:
parent
6dfae2f402
commit
65bc5ea95e
@ -4578,8 +4578,8 @@ do_getattr (app_t app, ctrl_t ctrl, const char *name)
|
||||
else if (!strcmp (name, "MANUFACTURER"))
|
||||
{
|
||||
if (app->app_local->manufacturer_id
|
||||
&& (app->app_local->card_product
|
||||
|| strchr (app->app_local->manufacturer_id, '[')))
|
||||
&& !strchr (app->app_local->manufacturer_id, '[')
|
||||
&& app->app_local->card_product)
|
||||
return send_status_printf (ctrl, "MANUFACTURER", "0 %s [%s]",
|
||||
app->app_local->manufacturer_id,
|
||||
cardproduct2str (app->app_local->card_product));
|
||||
|
Loading…
x
Reference in New Issue
Block a user