From c88247ec4d10d37b8387dc532eed0f8aba5c41f6 Mon Sep 17 00:00:00 2001 From: Sebastien Braun Date: Tue, 5 Oct 2010 20:40:41 +0200 Subject: Fix SIGSEGV when address info cannot be parsed. --- src/net/mcast/McastPGMSocket.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/net') diff --git a/src/net/mcast/McastPGMSocket.cpp b/src/net/mcast/McastPGMSocket.cpp index fa86d3b..731fc13 100644 --- a/src/net/mcast/McastPGMSocket.cpp +++ b/src/net/mcast/McastPGMSocket.cpp @@ -128,6 +128,7 @@ bool McastPGMSocket::open(McastConfiguration const* config, Direction direction) { qCritical() << "Could not parse address info: PGM Error: " << err->message; + return false; } sa_family_t family = addrinfo->ai_send_addrs[0].gsr_group.ss_family; -- cgit v1.2.3-55-g7522