[IOT-2340] Added NULL check for 'pdu->transport_hdr' 15/20315/2
authorarya.k <arya.kumar@samsung.com>
Tue, 23 May 2017 10:07:50 +0000 (15:37 +0530)
committerUze Choi <uzchoi@samsung.com>
Wed, 24 May 2017 01:39:57 +0000 (01:39 +0000)
Change-Id: Id8c6c86421f156cad612417c70aa58064b3ab5ad
Signed-off-by: arya.k <arya.kumar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/20315
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
resource/csdk/connectivity/src/cablockwisetransfer.c

index 8d781e6..96a8c2b 100644 (file)
@@ -1237,6 +1237,7 @@ CAResult_t CAUpdateBlockOptionItems(CABlockData_t *currData, const coap_pdu_t *p
 {
     VERIFY_NON_NULL(currData, TAG, "currData");
     VERIFY_NON_NULL(pdu, TAG, "pdu");
+    VERIFY_NON_NULL(pdu->transport_hdr, TAG, "pdu->transport_hdr");
     VERIFY_NON_NULL(block, TAG, "block");
 
     // update block data