| 224 | | |
|---|
| 225 | | pState->pLogManager->log(LL_INFO, "Successful bagle session, fetch \"%s\".", szUrl); |
|---|
| 226 | | pState->pFetchDispatcher->fetchFile(szUrl); |
|---|
| 227 | | |
|---|
| 228 | | free(szUrl); |
|---|
| 229 | | |
|---|
| 230 | | pState->fDone = true; |
|---|
| 231 | | pState->pNetworking->closeSocket(iHandle); |
|---|
| | 226 | |
|---|
| | 227 | if(strncmp(szUrl, "http", 4) || strncmp(szUrl, "ftp", 3) || strncmp(szUrl, "https", 5)) |
|---|
| | 228 | { |
|---|
| | 229 | pState->pLogManager->log(LL_INFO, "Detected binary Bagle upload (unimplemented)."); |
|---|
| | 230 | } |
|---|
| | 231 | else |
|---|
| | 232 | { |
|---|
| | 233 | pState->pLogManager->log(LL_INFO, "Successful bagle session, fetch \"%s\".", szUrl); |
|---|
| | 234 | pState->pFetchDispatcher->fetchFile(szUrl); |
|---|
| | 235 | |
|---|
| | 236 | free(szUrl); |
|---|
| | 237 | |
|---|
| | 238 | pState->fDone = true; |
|---|
| | 239 | pState->pNetworking->closeSocket(iHandle); |
|---|
| | 240 | } |
|---|