Commit 4b72f484 authored by Richard Sharpe's avatar Richard Sharpe Committed by Gerald (Jerry) Carter
Browse files

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)
parent 80728c70
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}