diff options
| author | Michael Biebl <biebl@debian.org> | 2019-08-06 22:47:09 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2019-08-06 22:47:09 +0200 |
| commit | 665270502c3d7c0d002ad76fefb1b7699794cd49 (patch) | |
| tree | 9bc6f4f79278c2a719e1839188f763655a6370ca /shared/n-acd | |
| parent | 3192a21b21d4a9d276a7f2ef4e4b0fcf3165d9eb (diff) | |
| parent | 5c79b900b59a5ad162ecc836e424468207ff031e (diff) | |
Update upstream source from tag 'upstream/1.20.0'
Update to upstream version '1.20.0' with Debian dir 832bc2b5ac5f253004165f6354c938efbe172206
Diffstat (limited to 'shared/n-acd')
| -rw-r--r-- | shared/n-acd/src/n-acd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shared/n-acd/src/n-acd.c b/shared/n-acd/src/n-acd.c index a0a48c58..d434d1d1 100644 --- a/shared/n-acd/src/n-acd.c +++ b/shared/n-acd/src/n-acd.c @@ -127,8 +127,10 @@ static int n_acd_socket_new(int *fdp, int fd_bpf_prog, NAcdConfig *config) { if (fd_bpf_prog >= 0) { r = setsockopt(s, SOL_SOCKET, SO_ATTACH_BPF, &fd_bpf_prog, sizeof(fd_bpf_prog)); - if (r < 0) - return -c_errno(); + if (r < 0) { + r = -c_errno(); + goto error; + } } r = bind(s, (struct sockaddr *)&address, sizeof(address)); |