aboutsummaryrefslogtreecommitdiff
path: root/lib/libgssapi/gss_release_buffer.c
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2008-05-07 13:53:12 +0000
committerDoug Rabson <dfr@FreeBSD.org>2008-05-07 13:53:12 +0000
commit33f12199250a09b573f7a518b523fdac3f120b8f (patch)
tree1338a6c0e5d3e7c3b0da720ac15cd79fc72c6b5a /lib/libgssapi/gss_release_buffer.c
parent4fe54d7c6acb302aacc6ac18798804b26c882c13 (diff)
downloadsrc-33f12199250a09b573f7a518b523fdac3f120b8f.tar.gz
src-33f12199250a09b573f7a518b523fdac3f120b8f.zip
Fix conflicts after heimdal-1.1 import and add build infrastructure. Import
all non-style changes made by heimdal to our own libgssapi.
Notes
Notes: svn path=/head/; revision=178828
Diffstat (limited to 'lib/libgssapi/gss_release_buffer.c')
-rw-r--r--lib/libgssapi/gss_release_buffer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libgssapi/gss_release_buffer.c b/lib/libgssapi/gss_release_buffer.c
index 8e7fa60e5471..7a85745abc5b 100644
--- a/lib/libgssapi/gss_release_buffer.c
+++ b/lib/libgssapi/gss_release_buffer.c
@@ -27,6 +27,9 @@
*/
#include <gssapi/gssapi.h>
+#include <stdlib.h>
+
+#include "utils.h"
OM_uint32
gss_release_buffer(OM_uint32 *minor_status,
@@ -36,8 +39,7 @@ gss_release_buffer(OM_uint32 *minor_status,
*minor_status = 0;
if (buffer->value)
free(buffer->value);
- buffer->length = 0;
- buffer->value = 0;
+ _gss_buffer_zero(buffer);
return (GSS_S_COMPLETE);
}