Fixed null dereference in DMC2280Connect
r1053 | ffr | 2006-08-10 11:46:44 +1000 (Thu, 10 Aug 2006) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
2c0465c43a
commit
497fe0e060
@@ -126,8 +126,6 @@ typedef struct __MoDriv {
|
||||
#define STR_RESIZE_LENGTH 256
|
||||
#define CMDLEN 1024
|
||||
#define BUFFLEN 512
|
||||
#define FAILURE 0
|
||||
#define SUCCESS 1
|
||||
#define _SAVEPOWER 0
|
||||
|
||||
#define HOME "home"
|
||||
@@ -909,7 +907,7 @@ static void KillDMC2280(/*@only@*/void *pData){
|
||||
if (controller==NULL) {
|
||||
snprintf(pError, ERRLEN,
|
||||
"ERROR: failed to create controller for %s at port %d",
|
||||
controller->pHost, controller->iPort);
|
||||
host, port);
|
||||
SCWrite(pCon,pError,eError);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user