Fixed invalid memory read, removed dead code
Fixed invalid memory read, removed dead code

Debug.c's coap_print_addr had its functionality completely removed
in the past.  However, this resulted in returning SOMETHING (not zero!)
despite not actually correctly writing to the addr parameter.

Since this parameter is uninitialized when sent to this function,
and the return value is used to determine whether it correctly added
info to the addr, the debug print following this (net.c:972) attempted
to read the uninitialized data, potentially causing memory corruption.

This fix removes the 'dead' code, then returns a zero (failure, nothing
written).

Change-Id: If4f2c131d9b2f585299363f21c3686c25de29104
Signed-off-by: Erich Keane <ec9f61fe526c14bb62c55d7c978f025ee6b3583d@intel.com>

rzr/iotivity,WojciechLuczkow/iotivity,santais/iotivity_1.1.0,iotivity/iotivity,santais/iotivity,tienfuc/iotivity-democlient-snap,kartben/iotivity,rzr/iotivity,santais/iotivity_1.1,kartben/iotivity,WojciechLuczkow/iotivity,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,santais/iotivity,kartben/iotivity,santais/iotivity,iotivity/iotivity,santais/iotivity_1.1.0,kartben/iotivity,santais/iotivity_1.1.0,WojciechLuczkow/iotivity,santais/iotivity_1.1.0,santais/iotivity,santais/iotivity,santais/iotivity_1.1,santais/iotivity_1.1,rzr/iotivity,kartben/iotivity,kartben/iotivity,tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,iotivity/iotivity,WojciechLuczkow/iotivity,santais/iotivity,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1,santais/iotivity_1.1.0,santais/iotivity_1.1.0,santais/iotivity_1.1,iotivity/iotivity,rzr/iotivity,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,rzr/iotivity,kartben/iotivity,iotivity/iotivity,santais/iotivity_1.1.0,iotivity/iotivity,WojciechLuczkow/iotivity,santais/iotivity_1.1,santais/iotivity_1.1,iotivity/iotivity,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,iotivity/iotivity,tienfuc/iotivity-democlient-snap,rzr/iotivity,rzr/iotivity,kartben/iotivity,santais/iotivity