From d5506215610f95c161ad45dba00a0b180de3a00b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 6 Feb 2010 12:40:38 +1100 Subject: s3-libsmb: update libsmb to use new DLIST macros manipulating p->prev directly is not safe any more (cherry picked from commit 3c650ac1e3e1cdbbabecfddcd29325f20b5dcb48) --- source3/libsmb/clidfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/libsmb/clidfs.c') diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c index 2a39ee9b58..d9e2b87d10 100644 --- a/source3/libsmb/clidfs.c +++ b/source3/libsmb/clidfs.c @@ -351,7 +351,7 @@ static struct cli_state *cli_cm_find(struct cli_state *cli, } /* Search to the start of the list. */ - for (p = cli; p; p = p->prev) { + for (p = cli; p; p = DLIST_PREV(p)) { if (strequal(server, p->desthost) && strequal(share,p->share)) { return p; -- cgit