X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Farc.c;h=a68ab6eb4a55a55426f3b96de8d18740955f29ad;hb=25f3b885dbfd1ba330521c8fe106876667a31bb7;hp=c1407af60258d8cf971f0f187c355786230e3599;hpb=29041f6cd4b0d8a0ee109ed0a0efaaf929d6a804;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/arc.c b/src/src/arc.c index c1407af60..a68ab6eb4 100644 --- a/src/src/arc.c +++ b/src/src/arc.c @@ -1607,14 +1607,12 @@ expire = now = 0; /* Parse the signing specification */ -if ( !(identity = string_nextinlist(&signspec, &sep, NULL, 0)) || !*identity - || !(selector = string_nextinlist(&signspec, &sep, NULL, 0)) || !*selector - || !(privkey = string_nextinlist(&signspec, &sep, NULL, 0)) || !*privkey - ) - { - s = !*identity ? US"identity" : !*selector ? US"selector" : US"private-key"; - goto bad_arg_ret; - } +if (!(identity = string_nextinlist(&signspec, &sep, NULL, 0)) || !*identity) + { s = US"identity"; goto bad_arg_ret; } +if (!(selector = string_nextinlist(&signspec, &sep, NULL, 0)) || !*selector) + { s = US"selector"; goto bad_arg_ret; } +if (!(privkey = string_nextinlist(&signspec, &sep, NULL, 0)) || !*privkey) + { s = US"privkey"; goto bad_arg_ret; } if (!arc_valid_id(identity)) { s = US"identity"; goto bad_arg_ret; } if (!arc_valid_id(selector))