-const char jcc_rcs[] = "$Id: jcc.c,v 1.181 2008/05/21 15:47:15 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.182 2008/06/27 11:13:56 fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jcc.c,v $
*
* Revisions :
* $Log: jcc.c,v $
+ * Revision 1.182 2008/06/27 11:13:56 fabiankeil
+ * Fix possible NULL-pointer dereference reported
+ * by din_a4 in #2003937. Pointy hat to me.
+ *
* Revision 1.181 2008/05/21 15:47:15 fabiankeil
* Streamline sed()'s prototype and declare
* the header parse and add structures static.
assert(csp->headers->first->str);
assert(!http->ssl);
- if (strncmpic(csp->headers->first->str, "HTTP", 4))
+ if (strncmpic(csp->headers->first->str, "HTTP", 4) &&
+ strncmpic(csp->headers->first->str, "ICY", 3))
{
/*
- * It doesn't look like a HTTP response:
+ * It doesn't look like a HTTP (or Shoutcast) response:
* tell the client and log the problem.
*/
if (strlen(csp->headers->first->str) > 30)