1
1

pcap: Correctly initialize sockaddr_in in ssh_pcap_context_set_file()

Error: CLANG_WARNING:
src/pcap.c:329:22: warning: The left operand of '!=' is a garbage value

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
Andreas Schneider 2019-01-22 12:43:51 +01:00
родитель 79fe88bfb8
Коммит e91e221d02

Просмотреть файл

@ -306,7 +306,12 @@ void ssh_pcap_context_set_file(ssh_pcap_context ctx, ssh_pcap_file pcap){
static int ssh_pcap_context_connect(ssh_pcap_context ctx) static int ssh_pcap_context_connect(ssh_pcap_context ctx)
{ {
ssh_session session=ctx->session; ssh_session session=ctx->session;
struct sockaddr_in local, remote; struct sockaddr_in local = {
.sin_family = AF_UNSPEC,
};
struct sockaddr_in remote = {
.sin_family = AF_UNSPEC,
};
socket_t fd; socket_t fd;
socklen_t len; socklen_t len;
int rc; int rc;