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

(-)net/openldap24-server/files/patch-libraries__liblber__sockbuf.c (+12 lines)
Line 0 Link Here
1
--- libraries/liblber/sockbuf.c.orig	2015-09-01 16:43:54.707637190 -0600
2
+++ libraries/liblber/sockbuf.c	2015-09-01 17:16:22.310503263 -0600
3
@@ -937,8 +937,7 @@
4
 	buf = (char *) buf + sizeof( struct sockaddr_storage );
5
 	len -= sizeof( struct sockaddr_storage );
6
    
7
-	rc = sendto( sbiod->sbiod_sb->sb_fd, buf, len, 0, dst,
8
-		sizeof( struct sockaddr_storage ) );
9
+	rc = sendto( sbiod->sbiod_sb->sb_fd, buf, len, 0, dst, dst->sa_len );
10
 
11
 	if ( rc < 0 ) return -1;
12
    

Return to bug 202819