miniupnpc: Exit with 1 if no UPnP devices found with upnp-listdevices

This commit is contained in:
Self-Hosting-Group 2024-01-15 23:19:30 +01:00
parent 4b0ff229d8
commit 39543ed3ca
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,8 @@ int main(int argc, char * * argv)
free_device(dev_array); free_device(dev_array);
} }
} else { } else {
printf("no device found.\n"); fprintf(stderr,"No UPnP devices found\n");
return 1;
} }
return 0; return 0;