summaryrefslogtreecommitdiffstats
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-12-04 14:01:47 +0100
committerMichael Adam <obnox@samba.org>2013-12-06 01:14:09 +0100
commit9d53d9f7e55e07bb079d3e91018e6c407c91573a (patch)
tree2c4b91b776bbd7c4cf398622f3fa3ea3fea7bffa /source4/libcli
parent5be0995d98cec1585997ea630d7d871352074f12 (diff)
downloadsamba-9d53d9f7e55e07bb079d3e91018e6c407c91573a.tar.gz
samba-9d53d9f7e55e07bb079d3e91018e6c407c91573a.tar.xz
samba-9d53d9f7e55e07bb079d3e91018e6c407c91573a.zip
s4-libcli: Add smb2_util_handle_empty().
Will be used in the next commit. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/smb2/util.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/libcli/smb2/util.c b/source4/libcli/smb2/util.c
index 8b4a86f3328..e28c910fb23 100644
--- a/source4/libcli/smb2/util.c
+++ b/source4/libcli/smb2/util.c
@@ -230,3 +230,12 @@ bool smb2_util_handle_equal(const struct smb2_handle h1,
{
return (h1.data[0] == h2.data[0]) && (h1.data[1] == h2.data[1]);
}
+
+bool smb2_util_handle_empty(const struct smb2_handle h)
+{
+ struct smb2_handle empty;
+
+ ZERO_STRUCT(empty);
+
+ return smb2_util_handle_equal(h, empty);
+}