net: apps: Fix incorrect ip buf app data length
ip_buf_appdatalen should be user_data->expecting otherwise it is zero. Change-Id: Iedb61a7f0e3516a5643da04b5963a2e241fd8bc9 Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
This commit is contained in:
parent
743de006ad
commit
ef017fe761
|
@ -174,6 +174,7 @@ static inline void send_message(const char *name,
|
|||
|
||||
ptr = net_buf_add(buf, user_data->expecting);
|
||||
memcpy(ptr, lorem_ipsum + pos, user_data->expecting);
|
||||
ip_buf_appdatalen(buf) = user_data->expecting;
|
||||
|
||||
dtls_write(ctx, session,
|
||||
ip_buf_appdata(buf), ip_buf_appdatalen(buf));
|
||||
|
|
Loading…
Reference in a new issue