summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2004-05-09 22:39:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:31 -0500
commit4b72f4841ae89e1a7525f4a78fab483d484b9d57 (patch)
treeb030d6fe19737d7c30b5b2197843e197e350c2a9 /source3
parent80728c70456dd30c86bcfed460212dc95d7fb02d (diff)
downloadsamba-4b72f4841ae89e1a7525f4a78fab483d484b9d57.tar.gz
samba-4b72f4841ae89e1a7525f4a78fab483d484b9d57.tar.bz2
samba-4b72f4841ae89e1a7525f4a78fab483d484b9d57.zip
r618: Bug #1333. Fix a problem pointed out by coolo where I was trying to ensure
that the errno is not trashed by a DEBUG statement, but screwed up. (This used to be commit e642f3e7b7a5fdbb5d12136c909e9c57e7cf1985)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/libsmbclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c
index 949c5ffab6..e44bdea2d3 100644
--- a/source3/libsmb/libsmbclient.c
+++ b/source3/libsmb/libsmbclient.c
@@ -686,7 +686,7 @@ SMBCSRV *smbc_server(SMBCCTX *context,
if (context->callbacks.add_cached_srv_fn(context, srv, server, share, workgroup, username)) {
int saved_errno = errno;
DEBUG(3, (" Failed to add server to cache\n"));
- saved_errno = errno;
+ errno = saved_errno;
if (errno == 0) {
errno = ENOMEM;
}