Packet Signing & Key Verification: Complete
diff --git a/nlsr_sync.c b/nlsr_sync.c
index fd884cb..80b0175 100644
--- a/nlsr_sync.c
+++ b/nlsr_sync.c
@@ -249,8 +249,7 @@
if( strcmp(orig_router,ccn_charbuf_as_string(rtr_uri)) == 0){
- int res_verify=verify_key(ptr,pcobuf1.offset[CCN_PCO_E],
- &pcobuf1);
+ int res_verify=verify_key(ptr,&pcobuf1);
if ( res_verify != 0 ){
printf("Error in verfiying keys !! :( \n");
@@ -780,6 +779,7 @@
ccn_run(temp_ccn, 100);
ccn_charbuf_destroy(&name);
ccn_destroy(&temp_ccn);
+ ccn_charbuf_destroy(&resultbuf);
return 0;
}