git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
836fd46
)
smbstatus: add server_id to sessions
author
Jule Anger
<janger@samba.org>
Mon, 2 May 2022 08:57:56 +0000
(10:57 +0200)
committer
Jule Anger
<janger@samba.org>
Mon, 8 Aug 2022 12:56:28 +0000
(12:56 +0000)
Signed-off-by: Jule Anger <janger@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/utils/status_json.c
patch
|
blob
|
history
diff --git
a/source3/utils/status_json.c
b/source3/utils/status_json.c
index 5800bfb5489833e332460093d76835220e7dc97c..51011461d248605a41f1f200215b19f3ecfef5f6 100644
(file)
--- a/
source3/utils/status_json.c
+++ b/
source3/utils/status_json.c
@@
-99,7
+99,6
@@
static int add_server_id_to_json(struct json_object *parent_json,
goto failure;
}
- json_free(&sub_json);
TALLOC_FREE(tmp_ctx);
return 0;
failure:
@@
-295,6
+294,10
@@
int traverse_sessionid_json(struct traverse_state *state,
if (result < 0) {
goto failure;
}
+ result = add_server_id_to_json(&sub_json, session->pid);
+ if (result < 0) {
+ goto failure;
+ }
result = json_add_int(&sub_json, "uid", session->uid);
if (result < 0) {
goto failure;