From owner-svn-soc-all@freebsd.org Sat Jul 18 13:13:41 2015 Return-Path: Delivered-To: svn-soc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1644A9A34BB for ; Sat, 18 Jul 2015 13:13:41 +0000 (UTC) (envelope-from def@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 074F018B5 for ; Sat, 18 Jul 2015 13:13:41 +0000 (UTC) (envelope-from def@FreeBSD.org) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.15.2/8.15.2) with ESMTP id t6IDDe0r035256 for ; Sat, 18 Jul 2015 13:13:40 GMT (envelope-from def@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.15.2/8.15.2/Submit) id t6IDDeM3035244 for svn-soc-all@FreeBSD.org; Sat, 18 Jul 2015 13:13:40 GMT (envelope-from def@FreeBSD.org) Date: Sat, 18 Jul 2015 13:13:40 GMT Message-Id: <201507181313.t6IDDeM3035244@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to def@FreeBSD.org using -f From: def@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r288530 - soc2013/def/crashdump-head/sbin/cryptcore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jul 2015 13:13:41 -0000 Author: def Date: Sat Jul 18 13:13:39 2015 New Revision: 288530 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=288530 Log: Report error message when calloc cannot allocate memory. Modified: soc2013/def/crashdump-head/sbin/cryptcore/cryptcore.c Modified: soc2013/def/crashdump-head/sbin/cryptcore/cryptcore.c ============================================================================== --- soc2013/def/crashdump-head/sbin/cryptcore/cryptcore.c Sat Jul 18 13:11:56 2015 (r288529) +++ soc2013/def/crashdump-head/sbin/cryptcore/cryptcore.c Sat Jul 18 13:13:39 2015 (r288530) @@ -53,7 +53,7 @@ pubkeysize = RSA_size(pubkey); encryptedkey = calloc(1, pubkeysize); if (encryptedkey == NULL) - pjdlog_exitx(1, "Unable to allocate encrypted key"); + pjdlog_exit(1, "Unable to allocate encrypted key"); arc4random_buf(key, sizeof(key)); if (RSA_public_encrypt(sizeof(key), key, encryptedkey, pubkey,