Lines 181-187
static int read_header(void *data, u_int32_t size, u_int32_t *pos, void **key_da
|
Link Here
|
---|
|
181 |
*data_data = (void*)((char*)data+*pos); |
181 |
*data_data = (void*)((char*)data+*pos); |
182 |
|
182 |
|
183 |
if (*data_size != strlen(*data_data)+1) |
183 |
if (*data_size != strlen(*data_data)+1) |
184 |
univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_INFO, "data_size and strlen don't match: %d != %d", *data_size, strlen(*data_data)+1); |
184 |
univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_INFO, "data_size and strlen don't match: %d != %zd", *data_size, strlen(*data_data)+1); |
185 |
*pos += *data_size; |
185 |
*pos += *data_size; |
186 |
} else { |
186 |
} else { |
187 |
*data_size = 0; |
187 |
*data_size = 0; |
Lines 236-242
int parse_entry(void *data, u_int32_t size, CacheEntry *entry)
|
Link Here
|
---|
|
236 |
(*attribute)->value_count = 0; |
236 |
(*attribute)->value_count = 0; |
237 |
entry->attribute_count++; |
237 |
entry->attribute_count++; |
238 |
|
238 |
|
239 |
univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ALL, "%s is at 0x%x", (*attribute)->name, (unsigned int)*attribute); |
239 |
univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ALL, "%s is at %p", (*attribute)->name, *attribute); |
240 |
} |
240 |
} |
241 |
(*attribute)->values = realloc((*attribute)->values, ((*attribute)->value_count+2)*sizeof(char*)); |
241 |
(*attribute)->values = realloc((*attribute)->values, ((*attribute)->value_count+2)*sizeof(char*)); |
242 |
if ((*attribute)->values == NULL) |
242 |
if ((*attribute)->values == NULL) |