summaryrefslogtreecommitdiff
path: root/lib/libradsec-base.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libradsec-base.h')
-rw-r--r--lib/libradsec-base.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libradsec-base.h b/lib/libradsec-base.h
index a972bf2..f46fb11 100644
--- a/lib/libradsec-base.h
+++ b/lib/libradsec-base.h
@@ -54,8 +54,9 @@ struct rs_packet *rs_packet_new(const struct rs_config *ctx,
const uint8_t buf[RS_HEADER_LEN],
size_t *count);
+/* FIXME: if return NULL, @a packet is freed and the pointer is no longer valid! */
struct rs_packet *rs_packet_parse(const struct rs_config *ctx,
- struct rs_packet *packet,
+ struct rs_packet **packet,
const uint8_t *buf,
size_t buflen);
@@ -65,7 +66,7 @@ struct rs_packet *rs_packet_parse(const struct rs_config *ctx,
FIXME
*/
void rs_packet_free(const struct rs_config *ctx,
- struct rs_packet *packet);
+ struct rs_packet **packet);
/** Serialize a packet.