1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

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 commit is contained in:
Richard Sharpe
2004-05-09 22:39:39 +00:00
committed by Gerald (Jerry) Carter
parent 21cdb45b54
commit e642f3e7b7

View File

@ -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;
}