summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7d703cd)
raw | patch | inline | side by side (parent: 7d703cd)
author | Witold Baryluk <witold.baryluk@gmail.com> | |
Wed, 2 Dec 2015 00:51:36 +0000 (01:51 +0100) | ||
committer | Witold Baryluk <witold.baryluk@gmail.com> | |
Wed, 2 Dec 2015 00:52:12 +0000 (01:52 +0100) |
src/ping.c | patch | blob | history |
diff --git a/src/ping.c b/src/ping.c
index 7eb229323627a1c4aab86b0017796bebb3b3c422..cac8a3fde43540c08249877e54138cefdc6e590f 100644 (file)
--- a/src/ping.c
+++ b/src/ping.c
if (ping_data != NULL)
{
- free(ping_data);
+ free (ping_data);
ping_data = NULL;
}
size = atoi (value);
- if ((size >= 1) && (size <= 65536))
+ if ((size >= 0) && (size <= 65536))
{
int i;
- ping_data = (char*) malloc(size + 1);
+ ping_data = (char *) malloc(size + 1);
if (ping_data == NULL)
{
char errbuf[1024];