Skip to contentSkip to conversation

cluster/dlm/lib libdlm.c

Cluster-devel [email protected] 1 participant 1 message Jan 16, 2008

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield at sourceware.org 2008-01-16 17:25:48

Modified files:
dlm/lib : libdlm.c

Log message:
Zero namelen when doing an unlock. On 32/64 bit systems it can make a horrible mess otherwise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/lib/libdlm.c.diff?cvsroot=cluster&r1=1.37&r2=1.38

dlm/lib/libdlm.c +1 -0
@@ -1037,6 +1037,7 @@
 	req.i.lock.lkid = lkid;
 	req.i.lock.flags = flags;
 	req.i.lock.lksb  = lksb;
+	req.i.lock.namelen = 0;
 	req.i.lock.castparam = astarg;
 	/* DLM_USER_UNLOCK will default to existing completion AST */
 	req.i.lock.castaddr = 0;