From ab75f458040131bb1aaebd8fe85a8a0e37f7f31e Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Sat, 2 May 2009 23:55:27 +0000 Subject: [PATCH] * Missed one case with the last filter rewrite. An empty filter argument should return all metadata. --- upnpsoap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upnpsoap.c b/upnpsoap.c index ac343b1..3f2e407 100644 --- a/upnpsoap.c +++ b/upnpsoap.c @@ -235,6 +235,8 @@ set_filter_flags(char * filter) char *item, *saveptr = NULL; u_int32_t flags = 0; + if( !filter || (strlen(filter) <= 1) ) + return 0xFFFFFFFF; item = strtok_r(filter, ",", &saveptr); while( item != NULL ) {