changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: libauthsrv: authdial smprint() out of memory autism

changeset 7137: 84d491804c1b
parent 7136: f9787df4cf43
child 7138: 512c2024f16a
author: cinap_lenrek@felloff.net
date: Sat, 06 Apr 2019 20:23:00 +0200
files: sys/src/libauthsrv/authdial.c
description: libauthsrv: authdial smprint() out of memory autism
     1.1--- a/sys/src/libauthsrv/authdial.c
     1.2+++ b/sys/src/libauthsrv/authdial.c
     1.3@@ -28,6 +28,8 @@ authdial(char *netroot, char *dom)
     1.4 	 */
     1.5 	if(p == nil) {
     1.6 		p = smprint("p9auth.%s", dom);
     1.7+		if(p == nil)
     1.8+			return -1;
     1.9 		t = ndbnew("auth", p);
    1.10 	}
    1.11 	free(p);