diff options
author | 2019-06-21 18:26:48 +0200 | |
---|---|---|
committer | 2019-06-21 18:32:13 +0200 | |
commit | 6229979035b93de8616700acfca0b2de4334e693 (patch) | |
tree | ef28c6ac89e45dee24deebba5a23851251d56dd2 /src | |
parent | fix indentation (diff) | |
download | firejail-6229979035b93de8616700acfca0b2de4334e693.tar.gz firejail-6229979035b93de8616700acfca0b2de4334e693.tar.zst firejail-6229979035b93de8616700acfca0b2de4334e693.zip |
enable additional cppchecks and fix a warning
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/arp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/arp.c b/src/firejail/arp.c index 06a619ba9..843d00ce0 100644 --- a/src/firejail/arp.c +++ b/src/firejail/arp.c | |||
@@ -45,7 +45,7 @@ typedef struct arp_hdr_t { | |||
45 | void arp_announce(const char *dev, Bridge *br) { | 45 | void arp_announce(const char *dev, Bridge *br) { |
46 | // RFC 5227 - using a source and destination IP address of the interface | 46 | // RFC 5227 - using a source and destination IP address of the interface |
47 | uint32_t srcaddr = br->ipsandbox; | 47 | uint32_t srcaddr = br->ipsandbox; |
48 | uint32_t destaddr = br->ipsandbox; | 48 | uint32_t destaddr = srcaddr; |
49 | 49 | ||
50 | if (strlen(dev) > IFNAMSIZ) { | 50 | if (strlen(dev) > IFNAMSIZ) { |
51 | fprintf(stderr, "Error: invalid network device name %s\n", dev); | 51 | fprintf(stderr, "Error: invalid network device name %s\n", dev); |