From: Andrew Tridgell Date: Sun, 24 Aug 2008 03:53:19 +0000 (+1000) Subject: fixed an errno handling bug that could lead to an infinite loop X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ccdc58ce91ee40ca7171dd040191291aeb7fe02;p=thirdparty%2Fsamba.git fixed an errno handling bug that could lead to an infinite loop --- diff --git a/source/modules/vfs_tsmsm.c b/source/modules/vfs_tsmsm.c index d56c5aa87fb..ee958b1be51 100644 --- a/source/modules/vfs_tsmsm.c +++ b/source/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) {