fix logic error in d768955f

the comparison against WDNS_MAXLEN_NAME should be strictly greater than,
not greater than or equal to.