diff options
author | Diadlo <polsha3@gmail.com> | 2017-03-12 09:55:28 +0300 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2017-03-26 12:40:52 +0000 |
commit | f675474c084e1e699c064f04d3984ff10706d915 (patch) | |
tree | 43d85b1d6f9db3cdf9a796d975e5a570f012b0d8 /toxcore/network.h | |
parent | 50c526e1a5349bd69ce29dda703e914fb755ccf4 (diff) |
Fix network malloc(0) bug
Diffstat (limited to 'toxcore/network.h')
-rw-r--r-- | toxcore/network.h | 3 |
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 | */ |
394 | int32_t net_getipport(const char *node, IP_Port **res, int type); | 395 | int32_t net_getipport(const char *node, IP_Port **res, int type); |
395 | 396 | ||