Ignore:
Timestamp:
Nov 12, 2012, 10:56:54 AM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Client 2.2: prevent crash like in ticket 204

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/src/ndpsmb.c

    r589 r728  
    947947        smbwrp_fileinfo finfo;
    948948        int rc = 0;
     949        int rcCon = 0;
    949950        unsigned long action;
    950951        char path[CCHMAXPATH+1] = {0};
     
    10081009                                    smbwrp_disconnect( pRes, pConn->cli);
    10091010                                    // reconnect
    1010                                     smbwrp_connect( pRes, &pConn->cli);
    1011                                     // try file list again
     1011                                    rcCon = smbwrp_connect( pRes, &pConn->cli);
     1012                                    if (rcCon != NO_ERROR)
     1013                                    debuglocal(9,"NdpQueryPathInfo smbwrp_connect rc = %d\n", rcCon);
     1014
     1015                                    // try file list again if reconnecting worked
     1016                                    if (rcCon == NO_ERROR)
    10121017                                    rc = smbwrp_getattr( &pRes->srv, pConn->cli, &finfo);
    1013                                     debuglocal(9,"NdpQueryPathInfo remote connection lost, rc = %d\n", rc);
    10141018                                }
     1019                                debuglocal(9,"NdpQueryPathInfo smbwrp_getattr, rc = %d\n", rc);
    10151020                                switch (rc)
    10161021                                {
Note: See TracChangeset for help on using the changeset viewer.