aboutsummaryrefslogtreecommitdiff
path: root/audio/icecast/files/patch-src::commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/icecast/files/patch-src::commands.c')
-rw-r--r--audio/icecast/files/patch-src::commands.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/audio/icecast/files/patch-src::commands.c b/audio/icecast/files/patch-src::commands.c
new file mode 100644
index 000000000000..5f9ab4bfb4bd
--- /dev/null
+++ b/audio/icecast/files/patch-src::commands.c
@@ -0,0 +1,25 @@
+--- src/commands.c
++++ src/commands.c
+@@ -84,8 +84,8 @@
+ #include "interpreter.h"
+
+ #include <time.h>
++#include <errno.h>
+
+-extern int errno;
+ extern int running;
+ extern server_info_t info;
+ extern mutex_t library_mutex;
+@@ -2884,8 +2884,11 @@
+ time_t before = 0;
+
+ if (!arg || !arg[0])
++ {
+ admin_write_line (req, ADMIN_SHOW_PING_INVALID_SYNTAX, PING_SYNTAX);
+-
++ return 0;
++ }
++
+ host[0] = '\0';
+
+ if (splitc (host, arg, ':') != NULL)