@@ -197,7 +197,7 @@ func getDelegateProxyMessages(callbackID int, agentUUIDLength int, updateCheckin
197
197
// there's a route between our callback and the target callback for some sort of proxy data
198
198
if messages , err := proxyPorts .GetDataForCallbackId (targetCallbackId , CALLBACK_PORT_TYPE_SOCKS ); err != nil {
199
199
logging .LogError (err , "Failed to get socks proxy data for routable callback" )
200
- } else {
200
+ } else if messages != nil {
201
201
// now that we have a path, need to recursively encrypt and wrap
202
202
newTask := map [string ]interface {}{
203
203
"action" : "get_tasking" ,
@@ -215,7 +215,7 @@ func getDelegateProxyMessages(callbackID int, agentUUIDLength int, updateCheckin
215
215
}
216
216
if messages , err := proxyPorts .GetDataForCallbackId (targetCallbackId , CALLBACK_PORT_TYPE_RPORTFWD ); err != nil {
217
217
logging .LogError (err , "Failed to get rpfwd proxy data for routable callback" )
218
- } else {
218
+ } else if messages != nil {
219
219
// now that we have a path, need to recursively encrypt and wrap
220
220
newTask := map [string ]interface {}{
221
221
"action" : "get_tasking" ,
@@ -233,7 +233,7 @@ func getDelegateProxyMessages(callbackID int, agentUUIDLength int, updateCheckin
233
233
}
234
234
if messages , err := proxyPorts .GetDataForCallbackId (targetCallbackId , CALLBACK_PORT_TYPE_INTERACTIVE ); err != nil {
235
235
logging .LogError (err , "Failed to get interactive proxy data for routable callback" )
236
- } else {
236
+ } else if messages != nil {
237
237
// now that we have a path, need to recursively encrypt and wrap
238
238
newTask := map [string ]interface {}{
239
239
"action" : "get_tasking" ,
0 commit comments