upnpc: Do not show the normally occurring error 713

SpecifiedArrayIndexInvalid when listing port mappings with -l.
This commit is contained in:
Self-Hosting-Group 2024-01-01 21:36:28 +01:00
parent 5380a08693
commit 847380967c
1 changed files with 2 additions and 0 deletions

View File

@ -171,6 +171,8 @@ static void ListRedirections(struct UPNPUrls * urls,
printf("%2hu %s %5s->%s:%-5s '%s' '%s' %s\n",
i, protocol, extPort, intClient, intPort,
desc, rHost, duration);
else if(r==713)
break;
else
printf("GetGenericPortMappingEntry() returned %d (%s)\n",
r, strupnperror(r));