Ignore:
Timestamp:
Aug 29, 2017, 10:52:39 AM (7 years ago)
Author:
djay
Message:

Fix various memory leaks and enhance the callback support. Add the prohibited keyword to the callback section to avoid calling callback for such services.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/ulinet.c

    r846 r850  
    286286          int length=strlen(token)+6;
    287287          char* tmp1=(char*)malloc(length*sizeof(char));
     288          map* tmpMap;
    288289          snprintf(tmp1,6,"HTTP_");
    289290          int j;
     
    296297          }
    297298          fprintf(stderr,"%s %d %s \n",__FILE__,__LINE__,tmp1);
    298           map* tmpMap = getMapFromMaps(conf,"renv",tmp1);
    299           if(tmpMap!=NULL)         
    300             AddMissingHeaderEntry(&handle->ihandle[i],token,tmpMap->value);
     299          if(strncmp(tmp1,"HTTP_COOKIE",11)!=0){           
     300            tmpMap = getMapFromMaps(conf,"renv",tmp1);
     301            if(tmpMap!=NULL)
     302              AddMissingHeaderEntry(&handle->ihandle[i],token,tmpMap->value);
     303          }
    301304          free(tmp1);
    302305          if(handle->ihandle[i].header!=NULL)
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png