diff options
author | Andreas Schneider <asn@samba.org> | 2013-12-04 14:01:47 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-12-06 01:14:09 +0100 |
commit | 9d53d9f7e55e07bb079d3e91018e6c407c91573a (patch) | |
tree | 2c4b91b776bbd7c4cf398622f3fa3ea3fea7bffa | |
parent | 5be0995d98cec1585997ea630d7d871352074f12 (diff) | |
download | samba-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>
-rw-r--r-- | source4/libcli/smb2/util.c | 9 |
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); +} |