Changeset 839 for branches/prototype-v0/zoo-project/zoo-kernel/caching.c
- Timestamp:
- Aug 7, 2017, 2:56:24 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/caching.c
r822 r839 158 158 */ 159 159 int readCurrentInput(maps** m,maps** in,int* index,HINTERNET* hInternet,map** error){ 160 160 161 map* tmp1; 161 162 char sindex[5]; … … 212 213 sprintf(sindex,"%d",*index+1); 213 214 if((tmp1=getMap(content->content,xname))!=NULL && tmap!=NULL && strcasecmp(tmap->value,sindex)==0){ 214 215 if(getMap(content->content,icname)==NULL){ 215 216 if(getMap(content->content,icname)==NULL){ 216 217 fcontent=(char*)malloc((hInternet->ihandle[*index].nDataLen+1)*sizeof(char)); 217 218 if(fcontent == NULL){ … … 266 267 char* md5str=NULL; 267 268 if((tmp2=getMap(content->content,bname))!=NULL){ 268 dumpMap(tmp2);269 269 char *tmpStr=(char*)malloc((strlen(tmp1->value)+strlen(tmp2->value)+1)*sizeof(char)); 270 270 sprintf(tmpStr,"%s%s",tmp1->value,tmp2->value); 271 271 if((tmp2=getMap(content->content,"headers"))!=NULL){ 272 272 char *tmpStr2=zStrdup(tmpStr); 273 free(tmpStr); 273 274 tmpStr=(char*)malloc((strlen(tmpStr2)+strlen(tmp2->value)+1)*sizeof(char)); 274 275 sprintf(tmpStr,"%s%s",tmpStr2,tmp2->value); … … 293 294 free(mimeType); 294 295 free(request); 295 *index++; 296 296 (*index)++; 297 297 } 298 298 } … … 361 361 free(oreq); 362 362 }else{ 363 setMapArray(oreq->content,"value",hInternet->nb -1,url);363 setMapArray(oreq->content,"value",hInternet->nb,url); 364 364 } 365 365 } … … 444 444 addToMap(*content,"cache_file",fname); 445 445 free(fname); 446 free(md5str); 446 447 } 447 448 }
Note: See TracChangeset
for help on using the changeset viewer.