From f6e3e0e8c1f2ca93e2a0643b37ee770c2d941ad0 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Thu, 23 Jun 2011 18:12:39 +0000 Subject: [PATCH] * Only ignore bad source port SSDP requests if the strict DLNA flag is set. --- minissdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minissdp.c b/minissdp.c index bfcb090..5cfa35c 100644 --- a/minissdp.c +++ b/minissdp.c @@ -603,7 +603,7 @@ ProcessSSDPRequest(int s, unsigned short port) /*DPRINTF(E_INFO, L_SSDP, "SSDP M-SEARCH packet received from %s:%d\n", inet_ntoa(sendername.sin_addr), ntohs(sendername.sin_port) );*/ - if( ntohs(sendername.sin_port) <= 1024 || ntohs(sendername.sin_port) == 1900 ) + if( GETFLAG(DLNA_STRICT_MASK) && (ntohs(sendername.sin_port) <= 1024 || ntohs(sendername.sin_port) == 1900) ) { DPRINTF(E_INFO, L_SSDP, "WARNING: Ignoring invalid SSDP M-SEARCH from %s [bad source port %d]\n", inet_ntoa(sendername.sin_addr), ntohs(sendername.sin_port));