remove build warning.

PortMappingNumberOfEntries is supposed to be limited to 65536

should fix #501
This commit is contained in:
Thomas Bernard 2020-11-09 20:38:45 +01:00
parent 30c27967ae
commit 82e874ada9
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $Id: upnpc.c,v 1.119 2018/03/13 23:34:46 nanard Exp $ */
/* $Id: upnpc.c,v 1.126 2020/11/09 19:38:06 nanard Exp $ */
/* Project : miniupnp
* Author : Thomas Bernard
* Copyright (c) 2005-2020 Thomas Bernard
@ -173,7 +173,7 @@ static void ListRedirections(struct UPNPUrls * urls,
printf("GetGenericPortMappingEntry() returned %d (%s)\n",
r, strupnperror(r));
i++;
} while(r==0);
} while(r == 0 && i < 65536);
}
static void NewListRedirections(struct UPNPUrls * urls,