1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

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
This commit is contained in:
Alexey Dokuchaev 2021-07-13 09:47:48 +00:00
parent dbb8d98297
commit 7f1fbb2020
2 changed files with 9 additions and 1 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= echoping
PORTVERSION= 6.0.2
PORTREVISION= 7
PORTREVISION= 8
CATEGORIES= net
MAINTAINER= ports@FreeBSD.org

View File

@ -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 ();