Lines 199-204
int parse_entry(void *data, u_int32_t size, CacheEntry *entry)
|
Link Here
|
---|
|
199 |
void *key_data, *data_data; |
199 |
void *key_data, *data_data; |
200 |
u_int32_t key_size, data_size; |
200 |
u_int32_t key_size, data_size; |
201 |
u_int32_t pos=0; |
201 |
u_int32_t pos=0; |
|
|
202 |
char *f; |
202 |
|
203 |
|
203 |
entry->attributes=NULL; |
204 |
entry->attributes=NULL; |
204 |
entry->attribute_count=0; |
205 |
entry->attribute_count=0; |
Lines 260-269
int parse_entry(void *data, u_int32_t size, CacheEntry *entry)
|
Link Here
|
---|
|
260 |
univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ERROR, "first 100 bytes of current entry:"); |
261 |
univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ERROR, "first 100 bytes of current entry:"); |
261 |
hex_dump(UV_DEBUG_ERROR, data, pos, pos+1000 > size ? size-pos : 1000); |
262 |
hex_dump(UV_DEBUG_ERROR, data, pos, pos+1000 > size ? size-pos : 1000); |
262 |
|
263 |
|
263 |
if ((file=fopen("/var/lib/univention-directory-listener/bad_cache", "w")) != NULL) { |
264 |
if (asprintf(&f, "%s/bad_cache", cache_dir) < 0) abort(); |
|
|
265 |
if ((file = fopen(f, "w")) != NULL) { |
264 |
fprintf(file, "Check log file"); |
266 |
fprintf(file, "Check log file"); |
265 |
fclose(file); |
267 |
fclose(file); |
266 |
} |
268 |
} |
|
|
269 |
free(f); |
267 |
|
270 |
|
268 |
return -1; |
271 |
return -1; |
269 |
} |
272 |
} |