xmlsecurityengine/xmlsec/src/xmlsec_keyinfo.c
branchRCL_3
changeset 16 d10d750052f0
parent 0 e35f40988205
child 24 74f0b3eb154c
equal deleted inserted replaced
14:361f875fa818 16:d10d750052f0
   768 	    xmlSecKeyDestroy(tmpKey);
   768 	    xmlSecKeyDestroy(tmpKey);
   769 	}
   769 	}
   770     }		
   770     }		
   771     
   771     
   772     /* finally set key name if it is not there */
   772     /* finally set key name if it is not there */
   773     if(xmlSecKeyGetName(key) == NULL) {
   773     if(xmlSecKeyGetName(key) == NULL) 
   774 	xmlSecKeySetName(key, newName);
   774         {
   775     }
   775         if(xmlSecKeySetName(key, newName)<0)
       
   776             {
       
   777             xmlFree(newName);
       
   778             return(-1);
       
   779             }
       
   780         }
   776     xmlFree(newName);
   781     xmlFree(newName);
   777     return(0);
   782     return(0);
   778 }
   783 }
   779 
   784 
   780 static int 
   785 static int