View | Details | Raw Unified | Return to bug 27312
Collapse All | Expand All

(-)a/branches/ucs-3.0/ucs/management/univention-directory-listener/src/cache_lowlevel.c (-2 / +2 lines)
 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)
(-)a/branches/ucs-3.0/ucs/management/univention-directory-listener/src/network.c (-2 / +1 lines)
 Lines 147-153   static int recv_block(NotifierClient *client, char **back, time_t timeout) Link Here 
147
			univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ERROR, "connection to notifier was closed");
147
			univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ERROR, "connection to notifier was closed");
148
			return 0;
148
			return 0;
149
		} else if (r < 0) {
149
		} else if (r < 0) {
150
			univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ERROR, "error %d while receiving from notifier", r);
150
			univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_ERROR, "error %d: %s while receiving from notifier", errno, strerror(errno));
151
			return 0;
151
			return 0;
152
		}
152
		}
153
153
154
- 

Return to bug 27312