port nlist bugfix from gdnsd d97bacc8

Change-Id: Iee23e95fc9640ce177814e61fee7a3ce2ce0a93c