Can't use strncasecmp here, content and dup->content are byte arrays, not strings and may contain any byte value, including \0 which would break this test.