diff options
-rw-r--r-- | usr.bin/nc/netcat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c index edf26866073..df5c44a8ce5 100644 --- a/usr.bin/nc/netcat.c +++ b/usr.bin/nc/netcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netcat.c,v 1.63 2003/09/22 21:39:40 miod Exp $ */ +/* $OpenBSD: netcat.c,v 1.64 2003/10/19 22:50:35 deraadt Exp $ */ /* * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> * @@ -172,7 +172,8 @@ main(int argc, char *argv[]) break; case 'x': xflag = 1; - proxy = strdup(optarg); + if ((proxy = strdup(optarg)) == NULL) + err(1, NULL); break; case 'z': zflag = 1; |