fixed off-by-one error in net.c - ID: 3542515 (applied patch from John Sucaet)
fixed off-by-one error in net.c - ID: 3542515 (applied patch from John Sucaet)

pabigot/libcoap,PolymorhicCode/libcoap,joaopedrotaveira/libcoap,RIOT-OS/libcoap,fredericgermain/libcoap,authmillenon/libcoap,alexaring/libcoap,nmacs/libcoap,markushx/libcoap,authmillenon/libcoap,gebart/libcoap,thecodemaiden/libcoap-fork,markushx/libcoap,gebart/libcoap,joaopedrotaveira/libcoap,authmillenon/libcoap,pabigot/libcoap,nmacs/libcoap,OlegHahm/libcoap,sgso/libcoap,markushx/libcoap,pabigot/libcoap,fredericgermain/libcoap,OlegHahm/libcoap,sgso/libcoap,fredericgermain/libcoap,alexaring/libcoap,OlegHahm/libcoap,thecodemaiden/libcoap-fork,RIOT-OS/libcoap,sgso/libcoap,nmacs/libcoap,joaopedrotaveira/libcoap,alexaring/libcoap,gebart/libcoap