[icecast] another patch (ping command)

Christoph Rupp chr1701 at yahoo.com
Thu Apr 4 08:14:52 PST 2002



Hi folks,

this is my first patch to an open source project ever,
so please be kind ;)

when i enter "ping" without arguments icecast crashes
(Version 1.3.11), the patch was generated with "diff
-u ...", i hope this is ok.

cu
Chris

--- commands.c~	Fri Jun 22 20:59:45 2001
+++ commands.c	Thu Apr  4 17:07:23 2002
@@ -2883,8 +2883,10 @@
         int s, port = info.port[0];
         time_t before = 0;
 
-	if (!arg || !arg[0])
+	if (!arg || !arg[0]) {
                 admin_write_line (req,
ADMIN_SHOW_PING_INVALID_SYNTAX, PING_SYNTAX);
+		return 1;
+        }
         
         host[0] = '\0';

<p>=====
http://www.crupp.de

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast mailing list