diff options
author | Sterling Hughes <sterling@php.net> | 2001-05-09 04:54:46 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2001-05-09 04:54:46 +0000 |
commit | 59d4dfc4c603ad3939911325b18f752caa407ce5 (patch) | |
tree | 14bc9ca2a4c1ef11006c0e4311ec96bb7610312d | |
parent | 1a032963eae10ad1e19fa58ed1e595cd9c77e0f1 (diff) | |
download | php-git-59d4dfc4c603ad3939911325b18f752caa407ce5.tar.gz |
fix crash bug (unlikely, but this is the only place where the reported bug
would make sense, and it can't hurt)...
-rw-r--r-- | ext/sockets/sockets.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index ea784729e8..67666e523e 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -1093,6 +1093,10 @@ PHP_FUNCTION(strerror) } else { buf = strerror(-(Z_LVAL_PP(error))); } + + if (!buf) { + RETURN_FALSE; + } RETURN_STRING((char *)buf, 1); } |