diff options
Diffstat (limited to 'src/cache.c')
-rw-r--r-- | src/cache.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cache.c b/src/cache.c index a7be5f1..a3f9c3a 100644 --- a/src/cache.c +++ b/src/cache.c @@ -74,13 +74,15 @@ static void cache_hash(struct crec *crecp); static unsigned int next_uid(void) { - static unsigned int uid = 1; + static unsigned int uid = 0; + uid++; + /* uid == 0 used to indicate CNAME to interface name. */ if (uid == 0) uid++; - return uid++; + return uid; } void cache_init(void) |