summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
authorDiadlo <polsha3@gmail.com>2017-03-12 09:55:28 +0300
committeriphydf <iphydf@users.noreply.github.com>2017-03-26 12:40:52 +0000
commitf675474c084e1e699c064f04d3984ff10706d915 (patch)
tree43d85b1d6f9db3cdf9a796d975e5a570f012b0d8 /toxcore/network.h
parent50c526e1a5349bd69ce29dda703e914fb755ccf4 (diff)
Fix network malloc(0) bug
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 92e5bbcf..28795602 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -389,7 +389,8 @@ int net_connect(Socket sock, IP_Port ip_port);
389 * Skip all addresses with socktype != type (use type = -1 to get all addresses) 389 * Skip all addresses with socktype != type (use type = -1 to get all addresses)
390 * To correctly deallocate array memory use net_freeipport() 390 * To correctly deallocate array memory use net_freeipport()
391 * 391 *
392 * return number of elements in res array. 392 * return number of elements in res array
393 * and -1 on error.
393 */ 394 */
394int32_t net_getipport(const char *node, IP_Port **res, int type); 395int32_t net_getipport(const char *node, IP_Port **res, int type);
395 396