Changeset 1135 for trunk/src


Ignore:
Timestamp:
02/04/09 19:38:40 (3 years ago)
Author:
alonbl
Message:

Revert r942, reopen bug #15

http://www.opensc-project.org/pipermail/opensc-devel/2009-February/011781.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ifd/usb-descriptors.c

    r964 r1135  
    220220                        if (retval < 0) 
    221221                                return retval; 
    222  
    223                         if (ifp->endpoint[i].extra != NULL) { 
    224                                 ifp->extra = 
    225                                     (unsigned char *)malloc(ifp->endpoint[i]. 
    226                                                             extralen); 
    227                                 if (!ifp->extra) { 
    228                                         ct_error("out of memory"); 
    229                                         ifp->extralen = 0; 
    230                                         return -1; 
    231                                 } 
    232                                 memcpy(ifp->extra, ifp->endpoint[i].extra, 
    233                                        ifp->endpoint[i].extralen); 
    234                                 ifp->extralen = ifp->endpoint[i].extralen; 
    235                         } 
    236222 
    237223                        buffer += retval; 
Note: See TracChangeset for help on using the changeset viewer.