From 7f3fbccbebdda4588189eb4a9a0ef17feae6e256 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 28 Feb 2014 20:24:19 +0100 Subject: [PATCH] testminissdpd: various improvements more tests. --- minissdpd/testminissdpd.c | 67 ++++++++++++++++++++++++++++++++------- 1 file changed, 55 insertions(+), 12 deletions(-) diff --git a/minissdpd/testminissdpd.c b/minissdpd/testminissdpd.c index c06cf50..30ee92d 100644 --- a/minissdpd/testminissdpd.c +++ b/minissdpd/testminissdpd.c @@ -1,12 +1,13 @@ -/* $Id: testminissdpd.c,v 1.7 2012/05/02 10:28:25 nanard Exp $ */ +/* $Id: testminissdpd.c,v 1.8 2014/02/28 18:38:21 nanard Exp $ */ /* Project : miniupnp * website : http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * Author : Thomas BERNARD - * copyright (c) 2005-2007 Thomas Bernard + * copyright (c) 2005-2014 Thomas Bernard * This software is subjet to the conditions detailed in the * provided LICENCE file. */ #include #include +#include #include #include #include @@ -21,6 +22,8 @@ void printresponse(const unsigned char * resp, int n) int i, l; unsigned int nresp; const unsigned char * p; + if(n == 0) + return; for(i=0; i