summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-12-09 18:59:12 +0000
committerLuke Leighton <lkcl@samba.org>1998-12-09 18:59:12 +0000
commita971a74717f1a9d8c966c623b735e079da2f67ae (patch)
tree5f0e7a817e1fe3be086cf1cc96a32d8d7803157b /source3/libsmb
parent58a0cbc0c842187d68872fe021b2ce68a13a12eb (diff)
downloadsamba-a971a74717f1a9d8c966c623b735e079da2f67ae.tar.gz
samba-a971a74717f1a9d8c966c623b735e079da2f67ae.tar.bz2
samba-a971a74717f1a9d8c966c623b735e079da2f67ae.zip
bugfix in smb_err_msg
(This used to be commit 870bccb174337dec5cc14a5e7740662de56e629c)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/smberr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/libsmb/smberr.c b/source3/libsmb/smberr.c
index 4fd9165c69..85827dde28 100644
--- a/source3/libsmb/smberr.c
+++ b/source3/libsmb/smberr.c
@@ -176,11 +176,10 @@ char *smb_err_msg(uint8 class, uint32 num)
}
}
}
-
+ slprintf(ret, sizeof(ret) - 1, "%s - %d",err_classes[i].class, num);
+ return ret;
}
- slprintf(ret, sizeof(ret) - 1, "%s - %d",err_classes[i].class, num);
- return ret;
}
slprintf(ret, sizeof(ret) - 1, "Error: Unknown error (%d,%d)",class,num);
return(ret);