1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-28 03:33:13 +03:00

r14858: fix bugs noticed by the ibm code checker

metze
This commit is contained in:
Stefan Metzmacher
2006-04-02 11:18:34 +00:00
committed by Gerald (Jerry) Carter
parent 07626bf3c7
commit 152e7e3d02
2 changed files with 6 additions and 5 deletions

View File

@@ -65,12 +65,12 @@ static NTSTATUS get_ntacl(char *filename, struct xattr_NTACL **ntacl,
}
blob.data = talloc_size(*ntacl, size);
blob.length = getxattr(filename, XATTR_NTACL_NAME, blob.data, size);
if (blob.length < 0) {
size = getxattr(filename, XATTR_NTACL_NAME, blob.data, size);
if (size < 0) {
fprintf(stderr, "get_ntacl: %s\n", strerror(errno));
return NT_STATUS_INTERNAL_ERROR;
}
blob.length = size;
ndr = ndr_pull_init_blob(&blob, NULL);

View File

@@ -455,7 +455,8 @@ static void manage_gensec_request(enum stdio_helper_mode stdio_helper_mode,
char *grouplist = NULL;
struct auth_session_info *session_info;
if (!NT_STATUS_IS_OK(gensec_session_info(state->gensec_state, &session_info))) {
nt_status = gensec_session_info(state->gensec_state, &session_info);
if (!NT_STATUS_IS_OK(nt_status)) {
DEBUG(1, ("gensec_session_info failed: %s\n", nt_errstr(nt_status)));
mux_printf(mux_id, "BH %s\n", nt_errstr(nt_status));
data_blob_free(&in);
@@ -759,7 +760,7 @@ static void manage_squid_request(enum stdio_helper_mode helper_mode,
stdio_helper_function fn, void **private2)
{
char buf[SQUID_BUFFER_SIZE+1];
unsigned int mux_id;
unsigned int mux_id = 0;
int length;
char *c;
static BOOL err;