diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-05-22 19:08:56 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-05-22 19:08:56 +0200 |
commit | 85a26178e91679983e6fd782d9862a43132227f5 (patch) | |
tree | 982005f5619f77f3198c5af85af5cd8164114bc2 /src/ipcpd/shim-udp | |
parent | 0200dcb157be0e62eb495bc870cdac03130c2aa1 (diff) | |
parent | 6b0c4f0ec586d3059d583ca64497268529a7b432 (diff) | |
download | ouroboros-85a26178e91679983e6fd782d9862a43132227f5.tar.gz ouroboros-85a26178e91679983e6fd782d9862a43132227f5.zip |
Merged in dstaesse/ouroboros/be-udp-fix (pull request #106)
ipcpd: shim-udp: fixed missing NULL check
Diffstat (limited to 'src/ipcpd/shim-udp')
-rw-r--r-- | src/ipcpd/shim-udp/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c index 1e58a8fc..0fc1c78a 100644 --- a/src/ipcpd/shim-udp/main.c +++ b/src/ipcpd/shim-udp/main.c @@ -871,6 +871,9 @@ static int ipcp_udp_bootstrap(struct dif_config * conf) int enable = 1; int fd = -1; + if (conf == NULL) + return -1; /* -EINVAL */ + if (conf->type != THIS_TYPE) { LOG_ERR("Config doesn't match IPCP type."); return -1; |