]> granicus.if.org Git - esp-idf/commit
coap: pass null-terminated string to gethostbyname
authorchenwu <chenwu@espressif.com>
Thu, 28 Jun 2018 09:27:10 +0000 (17:27 +0800)
committerchenwu <chenwu@espressif.com>
Mon, 2 Jul 2018 02:05:03 +0000 (10:05 +0800)
commit4898135c1572a17574615a856c4818820538f46f
tree957c7c67fe990d93d59f95114c45949c12e0fc3b
parent568da37af74dfbbd69392b6d38bfcfff1e5a48fc
coap: pass null-terminated string to gethostbyname

coap client parse a string by `coap_split_uri`,fetch host should by `host.length`
otherwise, would cause `gethostbyname` failed because of inappropriate  parameter.
examples/protocols/coap_client/main/coap_client_example_main.c