From 9d53d9f7e55e07bb079d3e91018e6c407c91573a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 4 Dec 2013 14:01:47 +0100 Subject: s4-libcli: Add smb2_util_handle_empty(). Will be used in the next commit. Signed-off-by: Andreas Schneider Reviewed-by: Michael Adam --- source4/libcli/smb2/util.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source4/libcli') 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); +} -- cgit