summaryrefslogtreecommitdiff
path: root/src/ipcpd/shim-udp
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-04-19 09:42:42 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-04-19 10:04:20 +0200
commitb2acd622d6380724fa16ee66b9f0f4463f1cd477 (patch)
treed78b33225eddcdc6081d4065cacbebd350dde7aa /src/ipcpd/shim-udp
parent8ebd13849c5e0db613763f3dd27220bacdb1f1e8 (diff)
downloadouroboros-b2acd622d6380724fa16ee66b9f0f4463f1cd477.tar.gz
ouroboros-b2acd622d6380724fa16ee66b9f0f4463f1cd477.zip
ipcpd: added checks
added missing NULL checks common argument check function for ipcps
Diffstat (limited to 'src/ipcpd/shim-udp')
-rw-r--r--src/ipcpd/shim-udp/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c
index 1fb12dc0..45620ee9 100644
--- a/src/ipcpd/shim-udp/main.c
+++ b/src/ipcpd/shim-udp/main.c
@@ -291,9 +291,10 @@ int main (int argc, char * argv[])
/* argument 3: instance id */
struct sigaction sig_act;
- /* FIXME: clean up argument checks */
- if (argc != 4)
- LOG_ERR("Wrong arguments passed.");
+ if (ipcp_arg_check(argc, argv)) {
+ LOG_ERR("Wrong arguments.");
+ exit(1);
+ }
/* store the process id of the irmd */
irmd_pid = atoi(argv[1]);