]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3484] Correct error in example code
authorStephen Morris <stephen@isc.org>
Tue, 14 Jul 2015 11:59:19 +0000 (12:59 +0100)
committerStephen Morris <stephen@isc.org>
Tue, 14 Jul 2015 11:59:19 +0000 (12:59 +0100)
src/lib/hooks/hooks_user.dox

index 01221065493ef9ba63a48364088138bc872305f0..5e82842f63f8ac5d3049070818d1022691d0f439 100644 (file)
@@ -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.