Check if memory being granted for read_dist_actions call

Otherwise we may hit memset(NULL, ...) in read_dist_actions.
This shippet has been reverted in commit

 | commit 9588ecbb8c8e3b628a1187e88d664662b83c97d5
 | Author: Kir Kolyshkin <kir@openvz.org>
 | Date:   Tue Jul 6 15:45:56 2010 +0400
 |
 |    Revert "Check for memory granted by get_dist_name"
 |
 |    This reverts commit 80ad89e384e04bd0835a13f246840f4f71113263.
 |

Because of problems in the former commit (Kir had no choice but
to revert it) lets re-revert this important check back.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
1 file changed