From eef94da7e06e9346770d81d7bc7aa98f8e68d3df Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 12 Nov 2014 17:05:15 +0100 Subject: [PATCH] miniupnpd/upnpreplyparse.c: fix DisplayNameValueList() --- miniupnpd/upnpreplyparse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/miniupnpd/upnpreplyparse.c b/miniupnpd/upnpreplyparse.c index cb5e9f5..8daa6a0 100644 --- a/miniupnpd/upnpreplyparse.c +++ b/miniupnpd/upnpreplyparse.c @@ -1,7 +1,7 @@ -/* $Id: upnpreplyparse.c,v 1.16 2014/10/27 16:33:19 nanard Exp $ */ +/* $Id: upnpreplyparse.c,v 1.18 2014/11/05 05:36:08 nanard Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ - * (c) 2006-2013 Thomas Bernard + * (c) 2006-2014 Thomas Bernard * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */ @@ -172,9 +172,9 @@ DisplayNameValueList(char * buffer, int bufsize) struct NameValueParserData pdata; struct NameValue * nv; ParseNameValue(buffer, bufsize, &pdata); - for(nv = pdata.head.lh_first; + for(nv = pdata.l_head; nv != NULL; - nv = nv->entries.le_next) + nv = nv->l_next) { printf("%s = %s\n", nv->name, nv->value); }