From f0ebe0e530e1dd80f4db8e734ccbceba56301e2c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20T=C3=BCxen?= <tuexen@fh-muenster.de>
Date: Fri, 5 Oct 2018 10:08:26 +0200
Subject: [PATCH] Add braces missed in earlier commit.

---
 gtests/net/packetdrill/packet_socket_pcap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gtests/net/packetdrill/packet_socket_pcap.c b/gtests/net/packetdrill/packet_socket_pcap.c
index 57eb63df..e6aad12c 100644
--- a/gtests/net/packetdrill/packet_socket_pcap.c
+++ b/gtests/net/packetdrill/packet_socket_pcap.c
@@ -133,7 +133,7 @@ void packet_socket_set_filter(struct packet_socket *psock,
 
 	ip_to_string(client_live_ip, client_live_ip_string);
 
-	if (client_ether_addr != NULL)
+	if (client_ether_addr != NULL) {
 		client_ether = client_ether_addr->ether_addr_octet;
 		asprintf(&filter_str,
 			 "ether src %02x:%02x:%02x:%02x:%02x:%02x and %s src %s",
@@ -145,7 +145,7 @@ void packet_socket_set_filter(struct packet_socket *psock,
 			 client_ether[5],
 			 client_live_ip->address_family == AF_INET6 ? "ip6" : "ip",
 			 client_live_ip_string);
-	else
+	} else
 		asprintf(&filter_str,
 			 "%s src %s",
 			 client_live_ip->address_family == AF_INET6 ? "ip6" : "ip",
-- 
GitLab