mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
r2031: add a check for a blank secret return in lsa secret tests
This commit is contained in:
parent
efecc3306e
commit
eddb31d196
@ -463,6 +463,10 @@ static BOOL test_CreateSecret(struct dcerpc_pipe *p,
|
||||
ret = False;
|
||||
}
|
||||
|
||||
if (r4.out.new_val->buf == NULL) {
|
||||
printf("No secret buffer returned\n");
|
||||
ret = False;
|
||||
} else {
|
||||
blob1.data = r4.out.new_val->buf->data;
|
||||
blob1.length = r4.out.new_val->buf->length;
|
||||
|
||||
@ -476,6 +480,7 @@ static BOOL test_CreateSecret(struct dcerpc_pipe *p,
|
||||
printf("Returned secret doesn't match\n");
|
||||
ret = False;
|
||||
}
|
||||
}
|
||||
|
||||
if (!test_Delete(p, mem_ctx, &sec_handle)) {
|
||||
ret = False;
|
||||
|
Loading…
x
Reference in New Issue
Block a user