fixed uninitialised memory in bdfilter

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8444 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2015-06-14 15:32:49 +00:00
parent 74d689184a
commit 5116042cf0

View File

@ -29,6 +29,7 @@
#include "util/bdfile.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <iostream>
#include <time.h>
@ -88,7 +89,9 @@ void bdFilter::loadBannedIpFile()
char addr_str[10240];
struct sockaddr_in addr;
memset(&addr, 0, sizeof(struct sockaddr_in));
addr.sin_family = PF_INET;
unsigned short port;
FILE *fd = fopen(mFilename.c_str(),"r") ;