hx509: Don’t pass excess arguments to variadic functions
Found by Coverity (Samba CID 1544609). Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:

committed by
Nico Williams

parent
d71035e2d1
commit
13f96a2c89
@@ -1187,8 +1187,7 @@ hx509_ca_tbs_add_san_permanentIdentifier_string(hx509_context context,
|
|||||||
p = strchr(freeme, ':');
|
p = strchr(freeme, ':');
|
||||||
if (!p) {
|
if (!p) {
|
||||||
hx509_set_error_string(context, 0, EINVAL,
|
hx509_set_error_string(context, 0, EINVAL,
|
||||||
"Invalid PermanentIdentifier string (should be \"[<oid>]:[<id>]\")",
|
"Invalid PermanentIdentifier string (should be \"[<oid>]:[<id>]\")");
|
||||||
oidstr);
|
|
||||||
free(freeme);
|
free(freeme);
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
@@ -1297,8 +1296,7 @@ hx509_ca_tbs_add_san_hardwareModuleName_string(hx509_context context,
|
|||||||
if (!p) {
|
if (!p) {
|
||||||
hx509_set_error_string(context, 0, EINVAL,
|
hx509_set_error_string(context, 0, EINVAL,
|
||||||
"Invalid HardwareModuleName string (should be "
|
"Invalid HardwareModuleName string (should be "
|
||||||
"\"<oid>:<serial>\")",
|
"\"<oid>:<serial>\")");
|
||||||
oidstr);
|
|
||||||
free(freeme);
|
free(freeme);
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user