File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ aa_channel_encode_fwd_out_data(
244
244
245
245
msg_size = jrtc_router_create_serialized_msg (data_entries [i ], data_to_write , AA_NET_ELEM_SIZE );
246
246
247
- if (msg_size ) {
247
+ if (msg_size > 0 ) {
248
248
iovec [n_sent ][0 ].iov_base = data_to_write ;
249
249
iovec [n_sent ][0 ].iov_len = msg_size ;
250
250
jmbuf_list [n_sent ] = jmbuf ;
@@ -254,7 +254,7 @@ aa_channel_encode_fwd_out_data(
254
254
datagrams [n_sent ].msg_hdr .msg_namelen = sizeof (struct sockaddr_in );
255
255
n_sent ++ ;
256
256
} else {
257
- jrtc_logger (JRTC_ERROR , "Encoding failed\n" );
257
+ jrtc_logger (JRTC_ERROR , "Encoding failed with msg_size %d \n" , msg_size );
258
258
jbpf_mbuf_free (jmbuf , false);
259
259
}
260
260
jrtc_router_channel_release_buf (data_entries [i ].data );
You can’t perform that action at this time.
0 commit comments