Fix warning.
This commit is contained in:
parent
854e076df8
commit
4f19a0672b
@ -461,6 +461,7 @@ static int do_name_ex(char_io *io_ch, void *arg, X509_NAME *n,
|
|||||||
int objlen, fld_len;
|
int objlen, fld_len;
|
||||||
if((fn_opt == XN_FLAG_FN_OID) || (fn_nid==NID_undef) ) {
|
if((fn_opt == XN_FLAG_FN_OID) || (fn_nid==NID_undef) ) {
|
||||||
OBJ_obj2txt(objtmp, 80, fn, 1);
|
OBJ_obj2txt(objtmp, 80, fn, 1);
|
||||||
|
fld_len = 0; /* XXX: what should this be? */
|
||||||
objbuf = objtmp;
|
objbuf = objtmp;
|
||||||
} else {
|
} else {
|
||||||
if(fn_opt == XN_FLAG_FN_SN) {
|
if(fn_opt == XN_FLAG_FN_SN) {
|
||||||
@ -469,7 +470,10 @@ static int do_name_ex(char_io *io_ch, void *arg, X509_NAME *n,
|
|||||||
} else if(fn_opt == XN_FLAG_FN_LN) {
|
} else if(fn_opt == XN_FLAG_FN_LN) {
|
||||||
fld_len = FN_WIDTH_LN;
|
fld_len = FN_WIDTH_LN;
|
||||||
objbuf = OBJ_nid2ln(fn_nid);
|
objbuf = OBJ_nid2ln(fn_nid);
|
||||||
} else objbuf = "";
|
} else {
|
||||||
|
fld_len = 0; /* XXX: what should this be? */
|
||||||
|
objbuf = "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
objlen = strlen(objbuf);
|
objlen = strlen(objbuf);
|
||||||
if(!io_ch(arg, objbuf, objlen)) return -1;
|
if(!io_ch(arg, objbuf, objlen)) return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user