summaryrefslogtreecommitdiff
path: root/src/sm_manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sm_manager.c')
-rw-r--r--src/sm_manager.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/sm_manager.c b/src/sm_manager.c
index 7d0e583..81e7d2f 100644
--- a/src/sm_manager.c
+++ b/src/sm_manager.c
@@ -198,9 +198,13 @@ SmsRegisterClientReply(SmsConn smsConn, char *clientId)
SIZEOF (smRegisterClientReplyMsg), WORD64COUNT (extra),
smRegisterClientReplyMsg, pMsg, pData);
- STORE_ARRAY8 (pData, strlen (clientId), clientId);
-
- IceFlush (iceConn);
+ if (pData != NULL) {
+ STORE_ARRAY8 (pData, strlen (clientId), clientId);
+ IceFlush (iceConn);
+ }
+ else {
+ SEND_ARRAY8 (iceConn, strlen (clientId), clientId);
+ }
return (1);
}