r25206: unify logic of talloc_strdup() and talloc_strndup(),