]> git.decadent.org.uk Git - odhcp6c.git/commitdiff
Fix RA-route export again
authorSteven Barth <steven@midlink.org>
Thu, 31 Jan 2013 11:40:00 +0000 (12:40 +0100)
committerSteven Barth <steven@midlink.org>
Thu, 31 Jan 2013 11:40:00 +0000 (12:40 +0100)
src/script.c

index f62ea5ef319fe965f489fd4456e77547ada56626..43af9884c9e0999f2fec22a9e34246ffc2dd35e1 100644 (file)
@@ -149,11 +149,10 @@ static void entry_to_env(const char *name, const void *data, size_t len, bool ho
                                        buf_len += strlen(&buf[buf_len]);
                                }
                                buf_len += snprintf(&buf[buf_len], 24, ",%u", e[i].valid);
+                               buf_len += snprintf(&buf[buf_len], 12, ",%u", e[i].priority);
                        } else {
                                buf_len += snprintf(&buf[buf_len], 24, ",%u,%u", e[i].preferred, e[i].valid);
                        }
-                       if (e[i].priority)
-                               buf_len += snprintf(&buf[buf_len], 12, ",%u", e[i].priority);
                }
                buf[buf_len++] = ' ';
        }