--- gateway/gw/dlr.c	2002-09-04 20:42:56.000000000 +0300
+++ gateway/gw/dlr.c	2002-09-05 11:58:24.000000000 +0300
@@ -504,7 +504,7 @@
             if ((typ & dlr_mask) > 0) {
                 /* its an entry we are interested in */
                 msg = msg_create(sms);
-                msg->sms.sms_type == report;
+                msg->sms.sms_type = report;
                 msg->sms.service = octstr_duplicate(dlr->service);
                 msg->sms.dlr_mask = typ;
                 msg->sms.sms_type = report;
