View | Details | Raw Unified | Return to bug 209160 | Differences between
and this patch

Collapse All | Expand All

(-)lib/libsdp/service.c (-3 / +3 lines)
Lines 178-184 Link Here
178
	pdu.tid = htons(++ss->tid);
178
	pdu.tid = htons(++ss->tid);
179
	pdu.len = htons(sizeof(handle) + datalen);
179
	pdu.len = htons(sizeof(handle) + datalen);
180
180
181
	handle = htons(handle);
181
	handle = htonl(handle);
182
182
183
	iov[0].iov_base = (void *) &pdu;
183
	iov[0].iov_base = (void *) &pdu;
184
	iov[0].iov_len = sizeof(pdu);
184
	iov[0].iov_len = sizeof(pdu);
Lines 227-234 Link Here
227
		return (-1);
227
		return (-1);
228
	}
228
	}
229
229
230
	error  = (uint16_t) ss->rsp[sizeof(pdu)] << 8;
230
	error  = (uint16_t) ss->rsp[sizeof(*pdu)] << 8;
231
	error |= (uint16_t) ss->rsp[sizeof(pdu) + 1];
231
	error |= (uint16_t) ss->rsp[sizeof(*pdu) + 1];
232
232
233
	if (error != 0) {
233
	if (error != 0) {
234
		ss->error = EIO;
234
		ss->error = EIO;

Return to bug 209160