Skip to content
Snippets Groups Projects
Commit 7f1fbb20 authored by Alexey Dokuchaev's avatar Alexey Dokuchaev
Browse files

net/echoping: fix the segmentation fault at dns.c:111

Add missing prototype for to_upper() which returns char *.  Without it,
compiler assumed that it returns an int, which results in segmentation
fault in init() at dns.c when trying process its result which had been
cast to char *, albeit needlessly (this code does lots of bogus casts).

PR:	220294
parent dbb8d982
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
PORTNAME= echoping
PORTVERSION= 6.0.2
PORTREVISION= 7
PORTREVISION= 8
CATEGORIES= net
MAINTAINER= ports@FreeBSD.org
......
......@@ -43,3 +43,11 @@
/* My functions */
@@ -198,6 +186,7 @@ int TLS_readline ();
#endif
/* util.c */
char *random_string ();
+char *to_upper(char *);
void tvsub ();
void tvadd ();
void tvavg ();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment