[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ftpapi] header_clean - deallocation issue



Hi,

Anyone could give me some ideas?

At the moment, when it tries to parse the header calling header_parse. In the first line, it tries to clean all the data from the previous request by calling header_clean. 

However, as soon as it hits the second occurrence of hdr it crashes when it tries to dealloc the pointer address. Obviously I can see that it is because the pointer address is no longer valid. 

HDR_NAME OF HDR =                               
          ....5...10...15...20...25...30...35...
     1   'transfer-encoding                     
    61   '                                      
   121   '                                      
   181   '                                      
   241   '                '                     
HDR_IDX OF HDR = 0                              
HDR_LEN OF HDR = 0                              
HDR_FILL OF HDR = '        '                    
HDR_PTR OF HDR = SPP:D51907CE14FC7290           

EVAL hdr_ptr:c 1000                                                    
HDR_PTR:C 1000 =                                                       
          ....5...10...15...20...25...30...35...40...45...50...55...60 
     1   ' chu    Groups":®■     ■N■■ó■]Ê¢ 0:1:1PROFILE","®■    ■&N■■ó'
   

Therefore any call to HTTPAPI will crash when it calls 

lHttpApiRes=http_persist_req(               
                    gRequestMethod          
                   :gHttpConn               
                   :gFullAddress            
                   :0                       
                   :*null                   
                   :%addr(lSoapBody:*data)  
                   :%len(lSoapBody)         
                   :0                       
                   :%paddr(httpapi_result)  
                   :wait                    
                    :gUserAgent      
                    :gContentType    
                    :gSoapAction     
                    );               
on-error;                            
 lHttpApiRes=-1;                     
endmon;                              

Hence return lHttpApires = -1.

Any ideas how the pointer address it is trying to deallocate has move somehow? :-(

Eric
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi