commit | e831935f1e77a0fd120935fdf19fe4126b7c9fe2 | [log] [tgz] |
---|---|---|
author | akmhoque <akmhoque@gmail.com> | Fri Mar 15 19:51:53 2013 -0500 |
committer | akmhoque <akmhoque@gmail.com> | Fri Mar 15 19:51:53 2013 -0500 |
tree | e048f3ad4d27a237f1eae176160fe65c6a6ef307 | |
parent | 5079b6527cb7b789d806193bf21af1c1fa9032cb [diff] |
get_content_by_content_name
diff --git a/nlsr_sync.c b/nlsr_sync.c index 5da514e..1d16e73 100644 --- a/nlsr_sync.c +++ b/nlsr_sync.c
@@ -265,6 +265,7 @@ length_in=length; ccn_content_get_value(ptr_in, length_in, &pcobuf1, &ptr_in, &length_in); + content_data = (unsigned char **)calloc(1,sizeof(char *)); *content_data = (unsigned char *) calloc(length_in, sizeof(char )); memcpy (*content_data, ptr_in, length_in);