updates.
[silc.git] / lib / silcclient / client_notify.c
index 80182f5a9240f65a60a1c492956027929af6ef24..24e8854eb3173e3381cc466faeb796dc735628f7 100644 (file)
@@ -55,11 +55,8 @@ static void silc_client_notify_by_server_pending(void *context, void *context2)
 
   SILC_LOG_DEBUG(("Start"));
 
-  if (reply) {
-    SilcCommandStatus status = silc_command_get_status(reply->payload);
-    if (status != SILC_STATUS_OK)
-      goto out;
-  }
+  if (reply && !silc_command_get_status(reply->payload, NULL, NULL))
+    goto out;
 
   silc_client_notify_by_server(res->context, res->sock, res->packet);