diff --git a/branches/ucs-4.0/ucs-4.0-2/management/univention-directory-listener/src/cache_lowlevel.c b/branches/ucs-4.0/ucs-4.0-2/management/univention-directory-listener/src/cache_lowlevel.c index 03ac6e7..941e32b 100644 --- a/branches/ucs-4.0/ucs-4.0-2/management/univention-directory-listener/src/cache_lowlevel.c +++ b/branches/ucs-4.0/ucs-4.0-2/management/univention-directory-listener/src/cache_lowlevel.c @@ -267,7 +267,7 @@ int parse_entry(void *data, u_int32_t size, CacheEntry *entry) } else { univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ERROR, "bad data block at position %d:", pos); univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ERROR, "last 100 bytes of previous entry:"); - hex_dump(UV_DEBUG_ERROR, data, pos-1000 < 0 ? 0 : pos-1000, pos-1000 < 0 ? pos : 1000); + hex_dump(UV_DEBUG_ERROR, data, pos < 1000 ? 0 : pos-1000, pos < 1000 ? pos : 1000); univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ERROR, "first 100 bytes of current entry:"); hex_dump(UV_DEBUG_ERROR, data, pos, pos+1000 > size ? size-pos : 1000);