Index: smppbox.c
===================================================================
--- smppbox.c	(revision 47)
+++ smppbox.c	(working copy)
@@ -1913,6 +1913,12 @@
 				octstr_destroy(msgid);
 			gwlist_destroy(pdulist, NULL);
 		}
+		else {
+			/* Send NACK to bearerbox, otherwise message remains in store file. */
+			warning(0, "msg_to_pdu failed, sending negative ack");
+			mack->ack.nack = ack_failed;
+			send_msg(box->bearerbox_connection, box, mack);
+		}		
 	}
         msg_destroy(msg);
     }
