For recvmsg() msg_control is a write only buffer, that is filled by the
kernel, but the kernel won't read from that buffer. So we shouldn't
read from (copy) it either.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
if (cm_data == NULL) {
return -1;
}
if (cm_data == NULL) {
return -1;
}
- memcpy(cm_data, msg_in->msg_control, msg_in->msg_controllen);
msg_tmp->msg_controllen = cm_data_space;
msg_tmp->msg_control = cm_data;
msg_tmp->msg_controllen = cm_data_space;
msg_tmp->msg_control = cm_data;