[Routing] Fixes INF problem on solaris.
Merge pull request #16 from owncloud/fix-core-1661

[Routing] Fixes INF problem on solaris.