]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3742. [port] linux: libcap support: curval was used before it
authorMark Andrews <marka@isc.org>
Mon, 17 Feb 2014 13:27:15 +0000 (00:27 +1100)
committerMark Andrews <marka@isc.org>
Mon, 17 Feb 2014 13:27:15 +0000 (00:27 +1100)
                        was declared. [RT #35387]

CHANGES
bin/named/unix/os.c

diff --git a/CHANGES b/CHANGES
index 11f47daf1ebe7eea44388dd32e87fb4e89dabbf0..2cae81f5aedbcf8c5deaa661a1ac8587ea2cde0e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+3742.  [port]          linux: libcap support: curval was used before it
+                       was declared. [RT #35387]
+
 3741.  [func]          "delve" (domain entity lookup and validation engine):
                        A new tool with dig-like semantics for performing DNS
                        lookups, with internal DNSSEC validation, using the
index d6c82a764ad8be45e7859f81cb17151a8b9a8471..78b795067978a74a77d8605fb9507a57c39f5018 100644 (file)
@@ -197,8 +197,8 @@ linux_setcaps(cap_t caps) {
 #ifdef HAVE_LIBCAP
 #define SET_CAP(flag) \
        do { \
-               capval = (flag); \
                cap_flag_value_t curval; \
+               capval = (flag); \
                err = cap_get_flag(curcaps, capval, CAP_PERMITTED, &curval); \
                if (err != -1 && curval) { \
                        err = cap_set_flag(caps, CAP_EFFECTIVE, 1, &capval, CAP_SET); \