summaryrefslogtreecommitdiffstats
path: root/src/lib/hooks
diff options
context:
space:
mode:
authorStephen Morris <stephen@isc.org>2015-07-14 13:59:19 +0200
committerStephen Morris <stephen@isc.org>2015-07-14 13:59:19 +0200
commitef70dd8960206f222ce28de3bbb3fa5d94984816 (patch)
treee5a6343c3d19e035c2c0ada8bb5b20f070ded6a2 /src/lib/hooks
parent[3484] Fixed quite a few doxygen warnings. (diff)
downloadkea-ef70dd8960206f222ce28de3bbb3fa5d94984816.tar.xz
kea-ef70dd8960206f222ce28de3bbb3fa5d94984816.zip
[3484] Correct error in example code
Diffstat (limited to 'src/lib/hooks')
-rw-r--r--src/lib/hooks/hooks_user.dox6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/hooks/hooks_user.dox b/src/lib/hooks/hooks_user.dox
index 0122106549..5e82842f63 100644
--- a/src/lib/hooks/hooks_user.dox
+++ b/src/lib/hooks/hooks_user.dox
@@ -809,7 +809,7 @@ int context_create(CalloutHandle& handle) {
// Callouts that use the context
int pkt4_receive(CalloutHandle& handle) {
// Retrieve the pointer to the SecurityInformation object
- SecurityInformation si;
+ SecurityInformation* si;
handle.getContext("security_information", si);
:
:
@@ -822,7 +822,7 @@ int pkt4_receive(CalloutHandle& handle) {
int pkt4_send(CalloutHandle& handle) {
// Retrieve the pointer to the SecurityInformation object
- SecurityInformation si;
+ SecurityInformation* si;
handle.getContext("security_information", si);
:
:
@@ -836,7 +836,7 @@ int pkt4_send(CalloutHandle& handle) {
// destroyed.
int context_destroy(CalloutHandle& handle) {
// Retrieve the pointer to the SecurityInformation object
- SecurityInformation si;
+ SecurityInformation* si;
handle.getContext("security_information", si);
// Delete the pointed-to memory.