miniupnp/miniupnp — pull request #10 by tomstokes (2012-03-13 01:20:47+00:00)
Title: Fix segfaults in Python module on unknown error codes

Previously, the strupnperror function in upnperrors.c would return (const char *)NULL for unknown error codes. When this happened, the Python module would segfault as it tried to generate an error code from a string at a NULL pointer.

This change returns "UnknownError" as the default error string, which prevents segmentation faults.