  /** Based on http://miniupnp.free.fr/files/download.php?file=xchat-upnp20061022.patch */
  void
  UPNPControl::init_upnp()
-@@ -78,52 +112,13 @@
+@@ -78,52 +112,13 @@
    struct UPNPDev * devlist;
    int retval;
  

-	sprintf(port_str, "%d", port);
-	UPNP_DeletePortMapping(urls.controlURL, data.servicetype, port_str, "TCP");
-}
Index: src/vidalia/config/upnpcontrol.h
===================================================================
--- src/vidalia/config/upnpcontrol.h	(revision 2498)
+++ src/vidalia/config/upnpcontrol.h	(working copy)
@@ -31,6 +31,7 @@
 public:
   static UPNPControl* Instance();
   int forwardPort(quint16 port);

 protected:
   UPNPControl();
 private:
@@ -43,6 +44,9 @@
   void init_upnp();
   void upnp_add_redir (const char * addr, int port);
   void upnp_rem_redir(int port);
