rspro_util: Print error message in case of encoder errror
Change-Id: Ia2eabd86dd143d5241756f406aa5388cf49d3ba1
This commit is contained in:
parent
6b8d4f82de
commit
a2b23c3c50
|
@ -37,6 +37,7 @@ struct msgb *rspro_enc_msg(RsproPDU_t *pdu)
|
|||
|
||||
rval = der_encode_to_buffer(&asn_DEF_RsproPDU, pdu, msgb_data(msg), msgb_tailroom(msg));
|
||||
if (rval.encoded < 0) {
|
||||
fprintf(stderr, "Failed to encode %s\n", rval.failed_type->name);
|
||||
return NULL;
|
||||
}
|
||||
msgb_put(msg, rval.encoded);
|
||||
|
|
Loading…
Reference in New Issue