[PATCH 01/14] s4-libcli: Add smb2_util_handle_empty().
Andreas Schneider
asn at samba.org
Wed Dec 4 06:01:47 MST 2013
Signed-off-by: Andreas Schneider <asn at samba.org>
---
source4/libcli/smb2/util.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/source4/libcli/smb2/util.c b/source4/libcli/smb2/util.c
index 8b4a86f..e28c910 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);
+}
--
1.8.5
More information about the samba-technical
mailing list