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:
Ravi kumar Veeramally 2015-11-12 11:35:01 +02:00 committed by Anas Nashif
parent 743de006ad
commit ef017fe761

View file

@ -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));