adblog: fix wrong length check