summaryrefslogtreecommitdiff
path: root/source3/libsmb/clidfs.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-06 12:40:38 +1100
committerJeremy Allison <jra@samba.org>2010-02-10 15:38:48 -0800
commitd5506215610f95c161ad45dba00a0b180de3a00b (patch)
tree7dbe2bc9b773601161bf2d656d3c020ae05eb932 /source3/libsmb/clidfs.c
parent7842b391b9ad1f6aaa77c0b8397e1dcc0b79e7e7 (diff)
downloadsamba-d5506215610f95c161ad45dba00a0b180de3a00b.tar.gz
samba-d5506215610f95c161ad45dba00a0b180de3a00b.tar.bz2
samba-d5506215610f95c161ad45dba00a0b180de3a00b.zip
s3-libsmb: update libsmb to use new DLIST macros
manipulating p->prev directly is not safe any more (cherry picked from commit 3c650ac1e3e1cdbbabecfddcd29325f20b5dcb48)
Diffstat (limited to 'source3/libsmb/clidfs.c')
-rw-r--r--source3/libsmb/clidfs.c2
1 files changed, 1 insertions, 1 deletions
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;