Imported Upstream version 3.3.1
[debian/amanda] / common-src / bsdudp-security.c
index 41ff9bfc056395f206f5b452175f2592860aa7a4..a4715ff9d9a3dd5b4683f22a9c19203474f72df8 100644 (file)
@@ -160,10 +160,8 @@ bsdudp_connect(
         * Only init the IPv6 socket once
         */
        if (res_addr->ai_addr->sa_family == AF_INET6 && not_init6 == 1) {
-           uid_t euid;
            dgram_zero(&netfd6.dgram);
 
-           euid = geteuid();
            set_root_privs(1);
            result_bind = dgram_bind(&netfd6.dgram,
                                     res_addr->ai_addr->sa_family, &port);
@@ -202,10 +200,8 @@ bsdudp_connect(
         * Only init the IPv4 socket once
         */
        if (res_addr->ai_addr->sa_family == AF_INET && not_init4 == 1) {
-           uid_t euid;
            dgram_zero(&netfd4.dgram);
 
-           euid = geteuid();
            set_root_privs(1);
            result_bind = dgram_bind(&netfd4.dgram,
                                     res_addr->ai_addr->sa_family, &port);