summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-08-24 13:53:19 +1000
committerMichael Adam <obnox@samba.org>2008-08-26 14:39:42 +0200
commit52c39dd55d0a3eda3e9ed9a0981f546ca7b88cff (patch)
tree744f7370618f365cddded8f54bfaefefbfe068f8 /source3/modules
parentf09e8ce2cecb5ed9afdf811024442ec9320f4b52 (diff)
downloadsamba-52c39dd55d0a3eda3e9ed9a0981f546ca7b88cff.tar.gz
samba-52c39dd55d0a3eda3e9ed9a0981f546ca7b88cff.tar.bz2
samba-52c39dd55d0a3eda3e9ed9a0981f546ca7b88cff.zip
fixed an errno handling bug that could lead to an infinite loop
(This used to be commit 5ccdc58ce91ee40ca7171dd040191291aeb7fe02)
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_tsmsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/vfs_tsmsm.c b/source3/modules/vfs_tsmsm.c
index d56c5aa87f..ee958b1be5 100644
--- a/source3/modules/vfs_tsmsm.c
+++ b/source3/modules/vfs_tsmsm.c
@@ -200,9 +200,9 @@ static bool tsmsm_is_offline(struct vfs_handle_struct *handle,
goto done;
}
- lerrno = 0;
-
do {
+ lerrno = 0;
+
ret = dm_get_dmattr(*dmsession_id, dmhandle, dmhandle_len,
DM_NO_TOKEN, &dmname, buflen, buf, &rlen);
if (ret == -1 && errno == EINVAL) {