From cabf6260c20a2070007ed2430df583176962f00b Mon Sep 17 00:00:00 2001 From: joss17 Date: Fri, 30 Oct 2009 00:45:25 +0000 Subject: [PATCH] fix uninitialized pointer fir libupnp git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1782 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/tcponudp/extaddrfinder.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/tcponudp/extaddrfinder.cc b/libretroshare/src/tcponudp/extaddrfinder.cc index bbfe9594a..62be9524b 100644 --- a/libretroshare/src/tcponudp/extaddrfinder.cc +++ b/libretroshare/src/tcponudp/extaddrfinder.cc @@ -263,7 +263,8 @@ ExtAddrFinder::ExtAddrFinder() _searching = new bool ; *_searching = false ; - *mFoundTS = time(NULL) - MAX_IP_STORE; + mFoundTS = new time_t; + *mFoundTS = time(NULL) - MAX_IP_STORE; _addr = (sockaddr_in*)malloc(sizeof(sockaddr_in)) ;