]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
*** empty log message ***
authorxuanthanh18 <xuanthanh18>
Wed, 21 Oct 2009 06:09:44 +0000 (06:09 +0000)
committerxuanthanh18 <xuanthanh18>
Wed, 21 Oct 2009 06:09:44 +0000 (06:09 +0000)
tos/lib/net/dhv/DhvHSumP.nc
tos/lib/net/dhv/DhvSummaryP.nc

index 451f4423a483058341069b328274afe959d58fa7..e550f610906d74de3b50ef0fe7ddcf834325e279 100755 (executable)
@@ -37,6 +37,9 @@ implementation{
     error_t sendResult;
 
     dmsg = call HSumSend.getPayloadPtr();
+    if(dmsg == NULL)
+        return FAIL;
+
     dmsg->type = ID_DHV_HSUM;
     dhsmsg = (dhv_hsum_msg_t*) dmsg->content;
 
index 0902f13a57259a310bd9ea945b3a9e7e93884b70..eb97dd409d0e4ef57783d48fcf6ddb77cbda70ab 100755 (executable)
@@ -42,6 +42,9 @@ implementation {
     dhv_summary_msg_t* dsmsg;
 
     dmsg = (dhv_msg_t*) call SummarySend.getPayloadPtr();
+    if(dmsg == NULL)
+        return FAIL;
+
     dmsg->type = ID_DHV_SUMMARY;
     dsmsg = (dhv_summary_msg_t*) dmsg->content;