summaryrefslogtreecommitdiff
path: root/omapip
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2001-05-18 01:04:57 +0000
committerTed Lemon <source@isc.org>2001-05-18 01:04:57 +0000
commitd5adfb6e63653679a3628625ef5259f910d710c1 (patch)
tree2c76ad4c20914b97c020b657741207c0756642b8 /omapip
parent60b3ba32e8339e257653d60b5060415926840732 (diff)
downloadisc-dhcp-d5adfb6e63653679a3628625ef5259f910d710c1.tar.gz
Don't dereference value if none was sent.
Diffstat (limited to 'omapip')
-rw-r--r--omapip/protocol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/omapip/protocol.c b/omapip/protocol.c
index ab9d3f28..ca40a1ef 100644
--- a/omapip/protocol.c
+++ b/omapip/protocol.c
@@ -664,7 +664,8 @@ isc_result_t omapi_protocol_signal_handler (omapi_object_t *h,
return status;
}
omapi_data_string_dereference (&p -> name, MDL);
- omapi_typed_data_dereference (&p -> value, MDL);
+ if (p -> value)
+ omapi_typed_data_dereference (&p -> value, MDL);
goto need_name_length;
signature_wait: